Skip to content

[✨] How to distinguish between link preload and page visit #36

@juanmarin-co

Description

@juanmarin-co

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions