4 ms·
Yes, I'm using Redux, and never modify the state. But I also needed to rollback only the rejected action, and keep the rest of the actions that user did after t
by hakanderyal 11y ago
Yes, I'm using Redux, and never modify the state. But I also needed to rollback only the rejected action, and keep the rest of the actions that user did after the rejected action intact. That presented a whole lot of different edge cases.
I created a solution based on redux-optimist[1], modified to my apps specific needs.
[1]: https://github.com/ForbesLindesay/redux-optimist https://github.com/ForbesLindesay/redux-optimist