DEV Community

loading...

Discussion on: Why we chose Vue

israelmuca profile image
Israel Muñoz

An easier approach with such big objects, is you deepClone them when you're going to edit them.
If the user changes anything, you save the changes; If the user cancels, you destroy the clonedObject.

That way your data remains untouched (whether you brought it from an API, or from Vuex) and you can still submit changes back.