ericsoco / managed-state-demo

Demo of externally-managed state

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use cases to demo

ericsoco opened this issue · comments

  • just run the updater fn over parent state, a subtree of which is child state (done in interceptUpdates.js)
  • manipulate child state in some custom way, in particular by importing component reducers to ensure correct state manipulation (done in interceptUpdates.js)
  • manipulate parent state somewhere else in response to (either before or after) child state change (done in multipleInstances.js)
  • not update child state at all (block the update) -- maybe better demo'd after #1 is figured out