reducer

Unlike conventional Redux state management, redux-rest-easy only needs one reducer. It will be generated and managed automatically. All you need to do is to import it under the name restEasy. This name is mandatory, and selectors won't work if you change it.

import { reducer } from '@brigad/redux-rest-easy';

const reducers = combineReducers({
  restEasy: reducer,
});

An overview of what the state will look like can be found in the reducers documentation.

Last updated