useFetch refresh failing to recognise new query params
I have a simple page with this useFetch code at the start:
However refresh() won't use the new route query param. If I put
{{ route.query.q }}
in the page it shows the new query param but refreshing through the watch OR a button with refresh() manually shows the API as recieving the old query param
What's happening???3 Replies
pass the ref not the value
should be supported afaik
add
key
to prevent the response being cached.
You'll also need to add page meta.
Alexander Lichter
YouTube
Avoid losing Reactivity in your Vue Application
🔄 Reactivity is a crucial and and concept when building any kind of Vue application. But especially with the Composition API, I see more and more people having trouble with Reactivity and ensure that the "reactivity chain" will be kept up throughout various composables and components. In this video, I want to highlight typical issues with ref's ...