Create SubscribeAPI method to make it easier to update deeply nested state
hjrdave opened this issue · 3 comments
hjrdave commented
This is just in case you want to have multiple states within one state object for groups.
Possible example:
Store.updateNested(action: string, targetProp: string, dispatchValue: any)
Not sure on name.
hjrdave commented
updateDeep is a possible name for the method
hjrdave commented
make sure you make the state immutable. Do not mutate it.
hjrdave commented
Store.deepUpdate()