When to use setup() vs. map helpers? #1275
Unanswered
plweil
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is kind of a followup to #1261 , but is much broader. When should we use the map helpers and when should we use
setup()
to import stores into Vue components? Is there a rule of thumb for this regarding a) your project is in Vue 2 versus Vue 3; and b) your project is using the Options API versus the Composition API? Or can you mix and match? One partially-developed project just given to me uses Vue 3, the Options API, but pulls in Pinia stores with<script setup>
. Is this ok, or is it a problem?Beta Was this translation helpful? Give feedback.
All reactions