Home

Issue: 505

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

[issue link]

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.

This feature request is available on Nuxt.js community (#c438)