React Query hangs on NextJS 14 when navigating away from a page. Im not doing any custom prefetching
I have 6 infinite queries on a page, they are not prefetching, they are all using 'use client' however after the first 2 complete, when I navigate away the devtools say the query is disabled, then when I navigate back it says fetching, but no network call is ever made, and I get a consistent loadingState. I've just updated to the latest version of React query.
1 Reply
adverse-sapphireOP•10mo ago
This is fixed. Sorry I’ve watched too many YouTubers saying “Just call server actions with react query it works” when it actual fact it really doesn’t. Apologies. This is not an issue and I need to make this a route handler