I have a couple of different Pinia stores but, I cant get the page to switch to a different store when the page loads.
This is what i tried:
mounted() {
this.$pinia.use(useMachineService);
}
But when I switch to a different page the same store gets used.
Finally found the fricking problem. The problem was that I forget to give the defineStore a string parameter:
It works if you don't use the string but then you wont be able to use multiple stores