useLazyFetch force refetch
Hey, all. Just making the move to Nuxt 3.
I use
useLazyFetch
to fetch data on the client side/display loading screens. If I have 2 of these requests on one page, on the data from the first request is returned, and then the data is not refetched when navigating back to the page.
I'm doing the below currently: Surely this can't be the optimal solution to forcing the data to be refetched each time? Opinions welcome, I know this isn't right
Cheers!5 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Good question
3.0.0 rc11 @Sr. Full Stack Dev
![No description](https://cdn.answeroverflow.com/1082431490480156803/IMG_2379.png)
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Ah okay, will give it a go thank you
Running npx nuxi upgrade has caused a build error:
Okay yeah, got that fixed. Killed page transitions tho