github TanStack/router @tanstack/router-core@1.171.15

latest releases: release-2026-07-13-2136, @tanstack/start-storage-context@1.167.17, @tanstack/router-plugin@1.168.20...
7 hours ago

Patch Changes

  • #7807 e2dd204 - fix(router-core): handle window and element scroll restoration independently

    Window and element scroll targets are now handled independently. Restoring one target no longer suppresses resets for other uncached configured targets, and a restored element is no longer reset when the window has no cached position.

    Hash navigation no longer resets elements configured through scrollToTopSelectors and retains precedence over stale window positions through destination invalidations.

    Scroll positions are sampled when leaving a route, preserving live changes made after the most recent scroll event. This also prevents client hydration from undoing nested positions restored by the SSR script.

    Fixes #7687.

Don't miss a new router release

NewReleases is sending notifications on new releases.