How to trigger $onAction with funtionally defined store #1246
Unanswered
Coldsewoo
asked this question in
Help and Questions
Replies: 0 comments
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.
-
Hello, I'm currently in process of migration from vuex v4.
I want to keep the existing mutation-action separated structure so defined store with functional method as below.
refered this example
It seems the overall logic works well with this structure, but $onAction does not trigger when commit or dispatch called.
How can I let the context know the functions in mutation or dispatch is action in pinia?
Beta Was this translation helpful? Give feedback.
All reactions