Skip to content

fix(platform): type navigation restore history state - #3964

Merged
yannickmonney merged 1 commit into
mainfrom
fix/nav-restore-history-state
Sep 30, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/nav-restore-history-state

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Main navigation now marks restored section entries with navRestore, but the shared router history type omits that property. This makes both restored-route readers fail the platform typecheck. Declare the existing marker as an optional boolean in the existing HistoryState augmentation; runtime behavior is unchanged.

Validation: complete uncached platform typecheck reproduces the two TS2339 errors before and passes after. Actual TypeScript/TanStack boundary checks cover absent, false and true markers, preserve the previous history keys, and reject a string. Changed-file formatting, type-aware lint and React Doctor pass. The hosted required checks remain the merge gate.

@yannickmonney
yannickmonney merged commit c2141df into main Sep 30, 2026
50 checks passed
@yannickmonney
yannickmonney deleted the fix/nav-restore-history-state branch September 30, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant