You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 085e16b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(pages): keep refresh in place and write preserveState hash visits
- router.refresh() goes through one shared helper used by the core and
React routers. React's copy still pushed a new history entry.
- refresh() keeps the URL hash; it now replaces the entry, which dropped
it. An internal _refresh flag stops it from being taken as a hash-only
visit, so the page is still fetched.
- Same-page hash visits write history with preserveState too, like other
visits.
- A replaced history entry keeps its scroll key, so repeated refreshes
no longer add a saved position each time.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
0 commit comments