How to use defined stores inside a npm package? #2151
-
Thanks for creating Pinia! I've been using it instead of Vuex for my projects now. I was wondering how I could use a "defined Pinia store inside of a npm package" in my project. I've seen something related to this question on SO here. I don't think the answer is a good solution to this problem. For some more information here is roughly what I'm doing:
And in my project I'll first call the
Any help to this problem would be appreciated! If this is not possible let me know and I'll just create the store in the project itself however it seems to me like the simple solution. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks! |
Beta Was this translation helpful? Give feedback.
Thanks!
This seems to be a duplicate of #2051