4 ms·
For me (Vue + Vuex) the choice was simple: you get undo for free. Having a shared store really does change the way you look at web apps - it's almost a complet
by smackay 8y ago
For me (Vue + Vuex) the choice was simple: you get undo for free.
Having a shared store really does change the way you look at web apps - it's almost a completely different paradigm. If you can avoid re-loading the data for a view if you already have it then then opening a new view to edit a subset of the data instead of dealing with popup makes life so much easier - you get a lot more freedom with the UX and going back to the previous view with the parent data is almost zero-cost.
- ilovecaching 8y agoYou can have undo for free using React as well. React doesn't care about how you manage your state changes, and it will selectively render only the parts of your app that changed.
- drb91 8y agoNot to mention, I believe time travel is an officially supported functionality for redux, if you choose to use that.
- boubiyeah 8y agoBut now you have a new problem: Managing the freshness of that cache.