@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
package/build/esm/index.js
CHANGED
|
@@ -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
|
});
|