How to getCurrentInstance or inject in store? #1397
Unanswered
tanghaojie
asked this question in
Help and Questions
Replies: 1 comment 1 reply
-
You shouldn't be using the current instance on a store because it's not related to a component. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I have a container in app, like this :
and use method:
then , i want to use container in store, but getCurrentInstance always get null . Is there anything wrong?
Beta Was this translation helpful? Give feedback.
All reactions