error
This is a small helper which adds a proper suffix to request action types, it can be useful to compute type of error response action, for example:
import { error } from '@redux-requests/core';
error('FETCH_BOOKS') === 'FETCH_BOOKS_ERROR';
This is a small helper which adds a proper suffix to request action types, it can be useful to compute type of error response action, for example:
import { error } from '@redux-requests/core';
error('FETCH_BOOKS') === 'FETCH_BOOKS_ERROR';