Nuxt useRoute is not reactive

Hi there, Im trying to use a computed with useRouter inside a Pinia store. A snippet of my code:
const route = useRoute();

const currentOrganisationID = computed(() => {
route.redirectedFrom;
console.log({ route });
return route.params.orgID;
});
const route = useRoute();

const currentOrganisationID = computed(() => {
route.redirectedFrom;
console.log({ route });
return route.params.orgID;
});
Somehow it looks like the console.log is never triggered altho i am using the variable inside of my Vue code.
1 Reply
Attacler/Bart
Attacler/BartOP9mo ago
solved it... multiple pinia stores had the same names
Want results from more Discord servers?
Add your server