J
jmls
Guest
so that's the whole point of the reactive coding. You dispatch the original object with the action and data and the reducer creates a new object based on the original, action and data. This is then stored and the new value emitted So there is a continuous stream of events and new versions of the object being monitored. This also allows you to build a "time machine" (a hook can take this stream of new versions and stack them) which allows you to easily add undo/redo capabilities to the system the important take away is that there is only one place of code that can "modify" (create a new version) of the object, and one "source of truth"
Continue reading...
Continue reading...