-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
For my application, I'm mutating the object in my data: [{...}, {...}, {...}]
to state changes occurring at other open instances of my application (happening through web sockets etc, etc). I have a handler on the data structure like this below:
watch: {
todos: {
deep: true,
handler: todoStorage.save,
},
},
Triggering todoStorage.save
would unnecessarily save the contents of the array back to my database where I already know the current state of the application.
Is there a way to mutate the array without triggering the handler? It seems that trying to undefine
the handler while making the operation doesn't work.
forgetfulanthropod, intijk, SeregPie, ryanrigby17, Ben-Mack and 5 more
Metadata
Metadata
Assignees
Labels
No labels