You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to collect some analytics when a certain page is visited. I'm storing an event every time a routeLoader is executed, but when a Link to that page is hovered, the routeLoader is executed without the user actually visiting the page
Describe the solution you'd like
Be able to distinguish if the current request is a preload or an actual visit to the page, in the routeLoader
Describe alternatives you've considered
Calling a server function from a useVisibleTask$ but seems overkilling
Additional context
No response
The text was updated successfully, but these errors were encountered:
assigned to @yousefmarey12 (can't do it directly with github for some reason atm) it might be best to send a prefetch header with prefetch calls to detect when requests are only prefetching
Is your feature request related to a problem?
I'm trying to collect some analytics when a certain page is visited. I'm storing an event every time a routeLoader is executed, but when a Link to that page is hovered, the routeLoader is executed without the user actually visiting the page
Describe the solution you'd like
Be able to distinguish if the current request is a preload or an actual visit to the page, in the routeLoader
Describe alternatives you've considered
Calling a server function from a useVisibleTask$ but seems overkilling
Additional context
No response
The text was updated successfully, but these errors were encountered: