blog/2025/event-sourcing/ #32
Replies: 1 comment 1 reply
|
Good to see this from you, Eric! Thanks for documenting and sharing your learning experience! :) I just want to share my thoughts and ideas with you here, so we can learn in public together.
This is also how Redux is implemented, by using event sourcing (see https://redux.js.org/understanding/thinking-in-redux/motivation). That's how we can undo/redo a Redux action and do time-travel debugging using Redux DevTools.
In your code example and article, you are using an In my experience, it's more common to make use of two arrays or stacks, i.e.
With this approach, the space complexity is the same. We don't need the Let me know what you think about this. :) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
blog/2025/event-sourcing/
Using event sourcing to implement undo/redo functionality in a React component.
https://ericjinks.com/blog/2025/event-sourcing/
All reactions