Skip to content

Error thrown when editing Vuex state via devtools in strict mode #757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
imtbl opened this issue Sep 5, 2018 · 1 comment
Closed

Error thrown when editing Vuex state via devtools in strict mode #757

imtbl opened this issue Sep 5, 2018 · 1 comment

Comments

@imtbl
Copy link

imtbl commented Sep 5, 2018

Version

5.0.0-beta.1

Browser and OS info

Chrome 69 / macOS 10.13.6

Steps to reproduce

  1. Enable strict mode in Vuex
  2. Edit the state via devtools

What is expected?

The state should be changed without throwing an error (since we are manually and knowingly changing the value via devtools).

What is actually happening?

The state is changed, but Vuex throws an error:

Error: [vuex] Do not mutate vuex store state outside mutation handlers.

It's really only a minor annoyance – not sure if it this can be changed at all (or if it's worth the trouble).

@Akryum
Copy link
Member

Akryum commented Sep 9, 2018

This need some investigation but I don't think there is something we can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants