diff --git a/packages/router-core/src/router.ts b/packages/router-core/src/router.ts index 4eb5672c0d..cda2a5ef2d 100644 --- a/packages/router-core/src/router.ts +++ b/packages/router-core/src/router.ts @@ -416,8 +416,6 @@ export function createRouter< }, dehydrateState: () => { - const {} = router.state - return { ...pick(router.state, ['status', 'location', 'lastUpdated']), matches: router.state.matches.map((match) => diff --git a/packages/router-core/src/utils.ts b/packages/router-core/src/utils.ts index a630335acd..179252ee5f 100644 --- a/packages/router-core/src/utils.ts +++ b/packages/router-core/src/utils.ts @@ -159,5 +159,6 @@ export function functionalUpdate( export function pick(parent: T, keys: K[]): Pick { return keys.reduce((obj: any, key: K) => { obj[key] = parent[key] + return obj }, {} as any) }