@tanstack/router-core 0.0.1-beta.6 → 0.0.1-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/router-core",
3
3
  "author": "Tanner Linsley",
4
- "version": "0.0.1-beta.6",
4
+ "version": "0.0.1-beta.8",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
7
  "homepage": "https://tanstack.com/router",
package/src/router.ts CHANGED
@@ -416,8 +416,6 @@ export function createRouter<
416
416
  },
417
417
 
418
418
  dehydrateState: () => {
419
- const {} = router.state
420
-
421
419
  return {
422
420
  ...pick(router.state, ['status', 'location', 'lastUpdated']),
423
421
  matches: router.state.matches.map((match) =>
package/src/utils.ts CHANGED
@@ -159,5 +159,6 @@ export function functionalUpdate<TResult>(
159
159
  export function pick<T, K extends keyof T>(parent: T, keys: K[]): Pick<T, K> {
160
160
  return keys.reduce((obj: any, key: K) => {
161
161
  obj[key] = parent[key]
162
+ return obj
162
163
  }, {} as any)
163
164
  }