I am using a simple Pinia setup with my app. Maybe worth noting that I am using the options API and vanilla Javascript.
Everything works fantastic, but what worries me is that when I watch Pinia in Vue.js devtools, the state never updates, although it is clearly changed in the app, otherwise it would not be running smoothly.
I have the suspicion that there is something wrong with my Pinia setup, so maybe the store that I am seeing in devtools is not the one my app is using.
Here is how my setup looks:
const pinia = createPinia();
const useStore = defineStore('',{
state() {return {
// stuff
}
});
const _store = useStore(pinia);
function getStore() {
return _store;
}
export {
getStore
}
Can someone with more experience tell me if there is anything suspicious in my setup or if the lack of update in Devtools could have a different cause? Thanks.