Skip to content

Commit e8d3a7f

Browse files
0.16.3
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 31501fd commit e8d3a7f

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.changeset/opt-in-scroll-restoration.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @solidjs/router
22

3+
## 0.16.3
4+
5+
### Patch Changes
6+
7+
- 31501fd: Add opt-in explicit scroll restoration for back/forward navigation: `<Router scrollRestoration>` (#577). The browser's native same-document heuristic loses the saved offset when the destination route forces a layout while the document is still short — any component that measures itself on mount is enough to trigger it. When enabled the router sets `history.scrollRestoration = "manual"`, captures positions continuously keyed by the history entry depth it already tracks, persists them across reloads, and restores after the navigation settles — retrying as the document grows if the target offset isn't reachable yet, cancelled by the first user scroll. Off by default on 0.x; no behavior changes unless enabled.
8+
39
## 0.16.2
410

511
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Ryan Turnquist"
77
],
88
"license": "MIT",
9-
"version": "0.16.2",
9+
"version": "0.16.3",
1010
"homepage": "https://github.com/solidjs/solid-router#readme",
1111
"repository": {
1212
"type": "git",

0 commit comments

Comments
 (0)