hjrdave/treble-gsm

Create SubscribeAPI method to make it easier to update deeply nested state

hjrdave opened this issue · 3 comments

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.

updateDeep is a possible name for the method

make sure you make the state immutable. Do not mutate it.

Store.deepUpdate()