router icon indicating copy to clipboard operation
router copied to clipboard

Hovering on Link causes search to change on current route

Open mer10z opened this issue 3 years ago • 3 comments

Describe the bug

With preload="intent", hovering on Link components that set search will change the value returned by useSearch.

Your Example Website or App

https://stackblitz.com/edit/tanstack-router-x91tl7?file=src%2Fmain.tsx

Steps to Reproduce the Bug or Issue

In the linked stack blitz,

  1. hover over the various links
  2. notice that the value returned by useSearch changes

Expected behavior

search should not change until the link is clicked

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 118.0.5993.88

Additional context

No response

mer10z avatar Nov 02 '23 23:11 mer10z

Fixed in latest :)

tannerlinsley avatar Dec 11 '23 23:12 tannerlinsley

I'm currently experiencing this same behaviour.

Version: @tanstack/[email protected] OS: Windows Browser: Chrome (123.0.6312.86 (Official Build) (64-bit) (cohort: Stable))

keeganteetaert avatar Apr 02 '24 00:04 keeganteetaert

I'm currently experiencing this same behaviour.

Version: @tanstack/[email protected] OS: Windows Browser: Chrome (123.0.6312.86 (Official Build) (64-bit) (cohort: Stable))

can you please create a new issue including a minimal complete example?

schiller-manuel avatar Apr 02 '24 01:04 schiller-manuel