Skip to content

After 30 seconds, hovering on link with search param sets the search param #1201

@pontusdacke

Description

@pontusdacke

Describe the bug

After loading a page, and waiting 30 seconds, hovering on a link with a search param will set the search param.
Its not set in the url unless you click, but the Route.useSearch() variable is set.

Your Example Website or App

https://stackblitz.com/edit/tanstack-router-mob5mz?file=src%2Froutes%2Findex.tsx

Steps to Reproduce the Bug or Issue

  1. Go to stackblitz repro
  2. After page is loaded, wait 30 seconds.
  3. Hover "My link" with the mouse
  4. A text appears that renders from the search parameter caught from Route.useSearch().

Hovering before 30 does not cause issues.

Expected behavior

The search param should not be set by hovering.

Screenshots or Videos

No response

Platform

  • OS: Windows 11 Version 23H2 (Build 22631.3007)
  • Browser: Edge
  • Version: 121.0.2277.128
  • Chromium version: 121.0.6167.184

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions