ourjapanlife / findadoc-web

Front-end repository for Find a Doc, Japan
https://findadoc.jp
BSD 3-Clause "New" or "Revised" License
16 stars 14 forks source link

REFACTOR: Use composition api in modalStore #733

Closed Anissa3005 closed 2 months ago

Anissa3005 commented 2 months ago

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