We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 941b213 commit 1a2766bCopy full SHA for 1a2766b
packages/router/src/router.ts
@@ -938,7 +938,7 @@ export function createRouter(options: RouterOptions): Router {
938
939
// only consider as push if it's not the first navigation
940
const isFirstNavigation = from === START_LOCATION_NORMALIZED
941
- const state = !isBrowser ? {} : history.state
+ const state: Partial<HistoryState> | null = !isBrowser ? {} : history.state
942
943
// change URL only if the user did a push/replace and if it's not the initial navigation because
944
// it's just reflecting the url
0 commit comments