Hi guys!
Despite the large amount of blog and documentation available for Pinia and Vue 3, I can’t get it to work with Ionic.
I’ve used Pinia with simple Vue 3 applications before and never had a problem. This is the first time I’ve tried to configure Pinia with Ionic.
What I did:
- Create a new blank Ionic Vue 3 application
- Delete TS according to the documentation
- npm i pinia
- Add use(createPinia()) to main.js
- Define a shop with defineStore() and the setup() method =>{} ).
I can see Pinia in the Vue devtool but not my own store, only root. (see screenshot).
Am I missing something obvious?
Translated with DeepL Translate: The world's most accurate translator (free version)