FrontendDeveloper.in

Vue.js question detail

What is the reason not to update the state directly?

We want to explicitly track application state in order to implement tools that can log every mutation, take state snapshots, or even perform time travel debugging. So we need to commit a mutation instead of changing store's state directly.

Back to all Vue.js questions
Get LinkedIn Premium at Rs 399