Can I directly export the result of the function store, so I don't need to call it every time? #2956
Unanswered
rodrigocfd
asked this question in
Help and Questions
Replies: 1 comment
-
Yes, there is as far I know. You can have an error about no active pinia detected. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is the common case for defining and exporting an store:
However, I need to call the exported function every time I use it:
So, what I am thinking is:
... so I could directly:
Is there any downsides of doing this?
Beta Was this translation helpful? Give feedback.
All reactions