-
Notifications
You must be signed in to change notification settings - Fork 57
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
Is possible to commit a mutation in a component using pathify? #106
Comments
Hey, Just checked your demo, and it looks like something is not quite right. The Not 100% sure why it is doing this. I just checked the basic code sandbox demo and it has the same behaviour:
So I suspect that Code Sandbox has recently had an update that is not rendering Vue files properly. I've filed a bug here: As for your issue, you can use The reason it is so verbose, is because Pathify maps key names using a naming strategy or "mapping" option: So the mutation for I prefer the "simple" mapping which uses a 1:1 approach. You can also import Does that answer your question? |
OK, turns out is was a newly-introduced bug with CS, and they've just fixed it, so that should make the demo look a little more sane. LMK about everything else! |
Yes, this totally answer my question; in other words you have anyway to use a "verbose" approach. Thank you. |
Hi, as the title says:
I have a very simple store with a couple of variables.
I set up the mutations using Pathify but I did not created actions\getters as they do not require any extra logic.
I'd like for consistence to use pathify, in the components, to commit the values, but I can't understand if that is possible and how; I managed to do so only using 'call' after creating the actions in the store.
I've already checked some the examples and some older issues, but yet I didn't solve my doubts.
Probably it's a overkill but I've set up a simple example to show what I'm trying to do.
Btw, it is unrelated but as you can see the 'get' in codesandbox for some reason doesn't work - it does not work even in the basic demo I've forked from.
The text was updated successfully, but these errors were encountered: