DEV Community

Discussion on: Implementing undo-redo with NgRx or Redux

Collapse
 
anduser96 profile image
Andrei Gatej

I recently have attempted to implement an undo/redo feature for a Vue app I’m working on and it was tricky. There were a lot of things that needed to be taken into account.

It would be cool if I could turn that into a library. I only used 2 arrays(undoStack, redoStack) to store the temporary data. It worked without too many problems, but I’m really glad I found another approach here.

I’ll take the time to explore further this article, but first I’ll make sure I’m comfortable with Ngrx( I find it pretty overwhelming, though useful).

Thanks for sharing!

Collapse
 
n_mehlhorn profile image
Nils Mehlhorn

Are you using Vuex for that? The concepts should probably transfer, though I don't have much experience with Vue. NgRx won't fit into your Vue app or are you planning to convert it to Angular?

Anyway, hit me up on Twitter if you need any help! Maybe we can work something out like ngrx-wieder for Vuex :)