Open riencoertjens opened 9 months ago
Manual prefetching should be possible by exposing loadClientData function in use-endpoint.ts But there is a catch I can think of: if the user prefetches a route while authenticated, qwik-city will load the relevant q-data file with all the auth details, then if the user logouts without refreshing the page, then the user can visit the route still as an authed user since prefetching does not occur again.
Is your feature request related to a problem?
discord thread
Describe the solution you'd like
I have this page, where I have an animation that I want to complete before doing the navigation, it would be nice if there was a way to already start preloading the next page
Describe alternatives you've considered
It would be nice if I could do something this to
sort of what happens when you hover over a link
Additional context
additionally and a more broader but similar feature would be to have different prefetch behaviour like in remix: