How to patch a state value from component #2374
Replies: 1 comment
-
OK, the problem was the actions() {
return {
updateName(state, name) {
this.user.name = name;
}
}
} should be actions: {
updateName(name) {
this.user.name = name;
}
} As far as patching the state that works , too
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My component fails to update store state neither
$patch
invoke noraction
binding workscomponent:
store:
There's no info of how to pass parameter to action nor how invoking it either
Beta Was this translation helpful? Give feedback.
All reactions