Skip to content

Added the possibility to append reducers to an existing key with one injectReducer call #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mantir
Copy link

@mantir mantir commented Feb 28, 2017

E.g. if you got an object with reducer functions mediaReducer = {mediaFun1: () => {}, mediaFun2: () => {}} and want to add all the functions in the object to an existing key data in the structure of the reducers: {data: {pagesFun1: () => {}, pagesFun2: () => {}}} to get {data: {pagesFun1: () => {}, pagesFun2: () => {}, mediaFun1:() => {}, mediaFun2:() => {}}} by doing: injectReducer('data', mediaReducer);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant