-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Does Vuex work with new Map(), as in key/value map lists? #439
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
Comments
Hi, thanks for your interest in the project. The problem is twofold:
|
Is there a way to use Map and Set with vue/vuex and some boilerplate, or is it just not supported at all? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
My state for a module looks like this:
I'm having some issues when updating an item in the list through a mutation, that it doesn't propagate through to the Vue component. In the component I have:
Am I using this wrong, or does Vuex not support Map()? If it's not supported, where would be a good place to put a
load(pk)
method?The text was updated successfully, but these errors were encountered: