Skip to content

Could pinia work on backend,How to do it without vue component? #1050

Discussion options

You must be logged in to vote

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's setup call, but with no template or rendering.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@radiorz
Comment options

@cefn
Comment options

Answer selected by radiorz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants