@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/build/cjs/packages/router-core/src/router.js +0 -1
- package/build/cjs/packages/router-core/src/router.js.map +1 -1
- package/build/cjs/packages/router-core/src/utils.js +1 -0
- package/build/cjs/packages/router-core/src/utils.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 +134 -134
- 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 +1 -1
- package/src/router.ts +0 -2
- package/src/utils.ts +1 -0
|
@@ -933,6 +933,7 @@
|
|
|
933
933
|
function pick(parent, keys) {
|
|
934
934
|
return keys.reduce((obj, key) => {
|
|
935
935
|
obj[key] = parent[key];
|
|
936
|
+
return obj;
|
|
936
937
|
}, {});
|
|
937
938
|
}
|
|
938
939
|
|
|
@@ -1753,7 +1754,6 @@
|
|
|
1753
1754
|
router.listeners.forEach(listener => listener(router));
|
|
1754
1755
|
},
|
|
1755
1756
|
dehydrateState: () => {
|
|
1756
|
-
router.state;
|
|
1757
1757
|
return _extends({}, pick(router.state, ['status', 'location', 'lastUpdated']), {
|
|
1758
1758
|
matches: router.state.matches.map(match => pick(match, ['matchId', 'status', 'routeLoaderData', 'loaderData', 'isInvalid', 'invalidAt']))
|
|
1759
1759
|
});
|