@tanstack/react-router 0.0.1-beta.6 → 0.0.1-beta.7

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.
@@ -978,6 +978,7 @@ function functionalUpdate(updater, previous) {
978
978
  function pick(parent, keys) {
979
979
  return keys.reduce((obj, key) => {
980
980
  obj[key] = parent[key];
981
+ return obj;
981
982
  }, {});
982
983
  }
983
984
 
@@ -1798,7 +1799,6 @@ function createRouter(userOptions) {
1798
1799
  router.listeners.forEach(listener => listener(router));
1799
1800
  },
1800
1801
  dehydrateState: () => {
1801
- router.state;
1802
1802
  return _extends({}, pick(router.state, ['status', 'location', 'lastUpdated']), {
1803
1803
  matches: router.state.matches.map(match => pick(match, ['matchId', 'status', 'routeLoaderData', 'loaderData', 'isInvalid', 'invalidAt']))
1804
1804
  });