Skip to content

Commit

Permalink
fix: experimental stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Nov 11, 2022
1 parent d0917c7 commit c8bec0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions packages/router-core/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,6 @@ export function createRouter<
},

dehydrateState: () => {
const {} = router.state

return {
...pick(router.state, ['status', 'location', 'lastUpdated']),
matches: router.state.matches.map((match) =>
Expand Down
1 change: 1 addition & 0 deletions packages/router-core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,6 @@ export function functionalUpdate<TResult>(
export function pick<T, K extends keyof T>(parent: T, keys: K[]): Pick<T, K> {
return keys.reduce((obj: any, key: K) => {
obj[key] = parent[key]
return obj
}, {} as any)
}

0 comments on commit c8bec0a

Please sign in to comment.