Ulrich
Reactivity with UseFetch
Hi i have a custom useFetch composable for fetching my data from an external API. In
/location
page, when the user arrive, a first fetch is made with filterOptions
(a reactive object that can have empty string at start), this page has a Filter
component that content filters of the page and update filterOptions object according to user preferences.
I want to remove empty key in filterOptions
when the request is been made without loosing reactivity(refetch when some of filterOptions
change).
I stuck on it. That's my files.
Thanks9 replies
Multiple Alias and Route navigation in Nuxt 3
Hello,
I have a
/search
page that help user to find items base on some filter. I also have three pages /location
, /meuble
and /vente
, same HTML structure as /search but with just some hidden things depending of the page.
I used alias in /search
for this three pages , but when i am on one of this pages and i want to go on another, nuxt-link doesn't trigger navigation saying i'm already on that page.
How to force navigation when navigating between these pages ? 🤔3 replies