@tanstack/react-router 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/router-core/build/esm/index.js +5 -10
- package/build/cjs/router-core/build/esm/index.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 +27 -27
- 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 +3 -2
package/build/esm/index.js
CHANGED
|
@@ -1923,6 +1923,9 @@ function createRouter(userOptions) {
|
|
|
1923
1923
|
exiting.push(d);
|
|
1924
1924
|
}
|
|
1925
1925
|
});
|
|
1926
|
+
const entering = matches.filter(d => {
|
|
1927
|
+
return !previousMatches.find(dd => dd.matchId === d.matchId);
|
|
1928
|
+
});
|
|
1926
1929
|
const now = Date.now();
|
|
1927
1930
|
exiting.forEach(d => {
|
|
1928
1931
|
var _ref, _d$options$loaderGcMa, _ref2, _d$options$loaderMaxA;
|
|
@@ -1930,12 +1933,7 @@ function createRouter(userOptions) {
|
|
|
1930
1933
|
d.__.onExit == null ? void 0 : d.__.onExit({
|
|
1931
1934
|
params: d.params,
|
|
1932
1935
|
search: d.routeSearch
|
|
1933
|
-
}); //
|
|
1934
|
-
// if (d.action) {
|
|
1935
|
-
// d.action.current = undefined
|
|
1936
|
-
// d.action.submissions = []
|
|
1937
|
-
// }
|
|
1938
|
-
// Clear idle error states when match leaves
|
|
1936
|
+
}); // Clear idle error states when match leaves
|
|
1939
1937
|
|
|
1940
1938
|
if (d.status === 'error' && !d.isFetching) {
|
|
1941
1939
|
d.status = 'idle';
|
|
@@ -1957,16 +1955,13 @@ function createRouter(userOptions) {
|
|
|
1957
1955
|
search: d.routeSearch
|
|
1958
1956
|
});
|
|
1959
1957
|
});
|
|
1960
|
-
const entering = matches.filter(d => {
|
|
1961
|
-
return !previousMatches.find(dd => dd.matchId === d.matchId);
|
|
1962
|
-
});
|
|
1963
1958
|
entering.forEach(d => {
|
|
1964
1959
|
d.__.onExit = d.options.onMatch == null ? void 0 : d.options.onMatch({
|
|
1965
1960
|
params: d.params,
|
|
1966
1961
|
search: d.search
|
|
1967
1962
|
});
|
|
1968
1963
|
delete router.matchCache[d.matchId];
|
|
1969
|
-
});
|
|
1964
|
+
});
|
|
1970
1965
|
|
|
1971
1966
|
if (router.startedLoadingAt !== id) {
|
|
1972
1967
|
// Ignore side-effects of match loading
|