Skip to content

Commit

Permalink
refactor: state typ
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jun 14, 2023
1 parent 941b213 commit 1a2766b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ export function createRouter(options: RouterOptions): Router {

// only consider as push if it's not the first navigation
const isFirstNavigation = from === START_LOCATION_NORMALIZED
const state = !isBrowser ? {} : history.state
const state: Partial<HistoryState> | null = !isBrowser ? {} : history.state

// change URL only if the user did a push/replace and if it's not the initial navigation because
// it's just reflecting the url
Expand Down

0 comments on commit 1a2766b

Please sign in to comment.