flexdinesh/react-redux-boilerplate

Inject reducer arbitrarily rather than top level for redux store to replace reducer

Open

#33 aperta il 13 apr 2019

Vedi su GitHub
 (2 commenti) (1 reazione) (0 assegnatari)JavaScript (275 fork)batch import
help wanted

Metriche repository

Star
 (782 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Is it possible to inject the reducer to update the state of existing as well was one level below the current state using following doesnt works rather create a new item in state by name home.userData const withReducer = injectReducer({ key: 'home.userData', reducer });

Is it possible that we can use key which is . separated to build nested object of asyncReducers ?

Having something like this will make this boilerplate viable for large scale applications , More context here

Guida contributor