Is this an anti-pattern? #1763
Answered
by
posva
fazulk
asked this question in
Help and Questions
-
Not too versed in how pinia is working under the hood. But could this be considered anti pattern or slow down peformance in any way?
|
Beta Was this translation helpful? Give feedback.
Answered by
posva
Oct 30, 2022
Replies: 1 comment
-
yes, you could say it's an anti pattern for composables in general: they are meant to be used in setup and script setup only. If you want to use the option api with pinia, use the map helpers |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fazulk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes, you could say it's an anti pattern for composables in general: they are meant to be used in setup and script setup only. If you want to use the option api with pinia, use the map helpers