@tanstack/react-router 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/build/cjs/router-core/build/esm/index.js +1 -1
- package/build/cjs/router-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +27 -27
- package/build/umd/index.development.js +1 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
|
@@ -947,6 +947,7 @@ function functionalUpdate(updater, previous) {
|
|
|
947
947
|
function pick(parent, keys) {
|
|
948
948
|
return keys.reduce((obj, key) => {
|
|
949
949
|
obj[key] = parent[key];
|
|
950
|
+
return obj;
|
|
950
951
|
}, {});
|
|
951
952
|
}
|
|
952
953
|
|
|
@@ -1767,7 +1768,6 @@ function createRouter(userOptions) {
|
|
|
1767
1768
|
router.listeners.forEach(listener => listener(router));
|
|
1768
1769
|
},
|
|
1769
1770
|
dehydrateState: () => {
|
|
1770
|
-
router.state;
|
|
1771
1771
|
return _extends({}, pick(router.state, ['status', 'location', 'lastUpdated']), {
|
|
1772
1772
|
matches: router.state.matches.map(match => pick(match, ['matchId', 'status', 'routeLoaderData', 'loaderData', 'isInvalid', 'invalidAt']))
|
|
1773
1773
|
});
|