Skip to content

@tanstack/router-core@1.171.15

Choose a tag to compare

@github-actions github-actions released this 13 Jul 21:35
Immutable release. Only release title and notes can be modified.
58c005f

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.