How to use pinia outsideof a project #2406
Unanswered
XiaoDan12202
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.
-
There are two projects named ProjectA and ProjectB.I created pinia in ProjectA where there is useTestStore. I refrerenced ProjectA which exports pinia and useTestStore in ProjectB.I called useTestStore() in projectB,there is no error repoted but the values in the store are initial values, it seems not the store in ProejectA but a new store.How can I use store in another project?
Beta Was this translation helpful? Give feedback.
All reactions