[Vuejs]-Vuex: Why disable strict mode?

5👍

Strict mode should not be used in production. Strict mode runs a synchronous deep watcher on the state tree for detecting inappropriate mutations, and this can slow down the application. To avoid changing strict to false each time you want to create a production bundle, you should use a build tool that makes the strict value false when creating the production bundle

you can enable that mode with this:

const store = new Vuex.Store({  // ...  strict: true});

Leave a comment