Could pinia work on backend,How to do it without vue component? #1050
Answered
by
cefn
radiorz
asked this question in
Help and Questions
-
Could pinia work without vue component? |
Beta Was this translation helpful? Give feedback.
Answered by
cefn
Feb 16, 2022
Replies: 1 comment 2 replies
-
Yes, Pinia can define state and business logic without being imported into a Vue component. I am currently using it this way, following the setup function style of |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
radiorz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, Pinia can define state and business logic without being imported into a Vue component.
I am currently using it this way, following the setup function style of
defineStore
, basically defining state mechanisms just like in a Vue component'ssetup
call, but with no template or rendering.