From 1a2766b35abb27160cd4a6d8756d7b9544d600f4 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 14 Jun 2023 09:41:19 +0200 Subject: [PATCH] refactor: state typ --- packages/router/src/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/router/src/router.ts b/packages/router/src/router.ts index 48e0d079..9a8c469b 100644 --- a/packages/router/src/router.ts +++ b/packages/router/src/router.ts @@ -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 | 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 -- 2.47.2