Reputation: 4672
I want to inject a custom reducer into react-admin to manipulate data inside state.admin
.
There is a section in doc for adding a custom reducer but this reducer can handle its own namespace.
How can I access and change data inside state.admin
?
Upvotes: 0
Views: 970
Reputation: 7355
You can't update data in another Redux reducer if the store was created using combineReducer()
- which is the case in react-admin. That's a design decision by Redux.
In your case, you have 2 possibilities:
Upvotes: 4