use-combined-reducers icon indicating copy to clipboard operation
use-combined-reducers copied to clipboard

Custom hook to combine all useReducer hooks for one global state container.

Results 8 use-combined-reducers issues
Sort by recently updated
recently updated
newest added

Hi! ```javascript const [state, dispatch] = useCombinedReducers< { documentWizard: DocumentWizardState; steps: StepState }, documentWizardActions & StepActions >({ documentWizard: useReducer( documentWizardReducer, initialDocumentWizardState ), steps: useReducer(stepReducer, initialStepState), }); ``` What is the...

If I want to to use dispatch in an effect then dispatch is a dependency and since dispatch changes on every call to useCombinedReducers the effect will be called every...

Dispatch has a different reference every time you call createDispatch. That is not how React.useReducer works and this should have consistant behavior. Reference to issiue: https://github.com/the-road-to-learn-react/use-combined-reducers/issues/4

## The devDependency [nyc](https://github.com/istanbuljs/nyc) was updated from `14.1.1` to `15.0.0`. This version is **not covered** by your **current version range**. If you donโ€™t accept this pull request, your project will...

greenkeeper

## The devDependency [mocha](https://github.com/mochajs/mocha) was updated from `6.2.2` to `7.0.1`. This version is **not covered** by your **current version range**. If you donโ€™t accept this pull request, your project will...

greenkeeper

## The devDependency [webpack](https://github.com/webpack/webpack) was updated from `4.35.3` to `4.36.0`. ๐Ÿšจ [View failing branch](https://github.com/the-road-to-learn-react/use-combined-reducers/compare/master...the-road-to-learn-react:greenkeeper%2Fwebpack-4.36.0). This version is **covered** by your **current version range** and after updating it in your project...

greenkeeper

## The dependency [sinon](https://github.com/sinonjs/sinon) was updated from `7.5.0` to `8.0.0`. This version is **not covered** by your **current version range**. If you donโ€™t accept this pull request, your project will...

greenkeeper

Hi, * you could even remove the semicolons