PetyXbron
Getting route params after changing route
Hi guys, u are my last chance before using vanilla javascript options or middleware + localStorage...
I am having trouble with getting params from
useRoute()
from my dynamic URL routes.
:1_check: Whenever I visit the URL directly OR reload the page I get the params correctly.
:1_cross: I don't get the params on page, where I get by await navigateTo()
(or await router.push()
), which is my goal...
Also, onMounted
fn doesn't help (onMounted(() => console.log("pastRoute", (useRoute().params)));
) it logs an empty object. But if I just reload the page... the params are there...15 replies