@tanstack/router-core 0.0.1-beta.10 → 0.0.1-beta.11
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 +5 -10
- package/build/cjs/packages/router-core/src/router.js.map +1 -1
- package/build/esm/index.js +5 -10
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +130 -130
- package/build/umd/index.development.js +5 -10
- 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 -1
- package/src/router.ts +4 -12
|
@@ -1878,6 +1878,9 @@
|
|
|
1878
1878
|
exiting.push(d);
|
|
1879
1879
|
}
|
|
1880
1880
|
});
|
|
1881
|
+
const entering = matches.filter(d => {
|
|
1882
|
+
return !previousMatches.find(dd => dd.matchId === d.matchId);
|
|
1883
|
+
});
|
|
1881
1884
|
const now = Date.now();
|
|
1882
1885
|
exiting.forEach(d => {
|
|
1883
1886
|
var _ref, _d$options$loaderGcMa, _ref2, _d$options$loaderMaxA;
|
|
@@ -1885,12 +1888,7 @@
|
|
|
1885
1888
|
d.__.onExit == null ? void 0 : d.__.onExit({
|
|
1886
1889
|
params: d.params,
|
|
1887
1890
|
search: d.routeSearch
|
|
1888
|
-
}); //
|
|
1889
|
-
// if (d.action) {
|
|
1890
|
-
// d.action.current = undefined
|
|
1891
|
-
// d.action.submissions = []
|
|
1892
|
-
// }
|
|
1893
|
-
// Clear idle error states when match leaves
|
|
1891
|
+
}); // Clear idle error states when match leaves
|
|
1894
1892
|
|
|
1895
1893
|
if (d.status === 'error' && !d.isFetching) {
|
|
1896
1894
|
d.status = 'idle';
|
|
@@ -1912,16 +1910,13 @@
|
|
|
1912
1910
|
search: d.routeSearch
|
|
1913
1911
|
});
|
|
1914
1912
|
});
|
|
1915
|
-
const entering = matches.filter(d => {
|
|
1916
|
-
return !previousMatches.find(dd => dd.matchId === d.matchId);
|
|
1917
|
-
});
|
|
1918
1913
|
entering.forEach(d => {
|
|
1919
1914
|
d.__.onExit = d.options.onMatch == null ? void 0 : d.options.onMatch({
|
|
1920
1915
|
params: d.params,
|
|
1921
1916
|
search: d.search
|
|
1922
1917
|
});
|
|
1923
1918
|
delete router.matchCache[d.matchId];
|
|
1924
|
-
});
|
|
1919
|
+
});
|
|
1925
1920
|
|
|
1926
1921
|
if (router.startedLoadingAt !== id) {
|
|
1927
1922
|
// Ignore side-effects of match loading
|