Since we use Vue3 we are using the composition API (read more about it here: https://vuejs.org/about/faq)
This means we want to use that approach as well in our Pinia stores (Pinia calls this Setup Store).
Currently modalStore is not using the Setup store.
Success
Refactor the modalStore using the Setup store. You can use the other stores as an example.
Here is the documentation of Pinia (setup store): https://pinia.vuejs.org/core-concepts/
Requirements
[ ] Refactor modalStore using the setup store approach
Problem
Since we use Vue3 we are using the composition API (read more about it here: https://vuejs.org/about/faq) This means we want to use that approach as well in our Pinia stores (Pinia calls this Setup Store).
Currently
modalStore
is not using the Setup store.Success
Refactor the
modalStore
using the Setup store. You can use the other stores as an example. Here is the documentation of Pinia (setup store): https://pinia.vuejs.org/core-concepts/Requirements
modalStore
using the setup store approach