Static GitHub Issues

[505] Does it make sense to initialize the store in strict mode?

prev: Links pointing to / always receive the nuxt-link-active class
next: Integration vue-apollo

As per this link, if your store isn't in strict mode, then inappropriate state mutations won't be caught. I have, without thinking about it, been inadvertently mutating state via v-model.

Would it make sense to default this to true in development mode, with a configuration setting to explicitly disable it if needed? It was definitely a surprise that the default setup let me do this, and it's probably a best practice to explicitly require opting out of this rather than making it opt-in.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c438">#c438</a>)</em></sub></div>