@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.
@@ -1892,6 +1892,9 @@ function createRouter(userOptions) {
1892
1892
  exiting.push(d);
1893
1893
  }
1894
1894
  });
1895
+ const entering = matches.filter(d => {
1896
+ return !previousMatches.find(dd => dd.matchId === d.matchId);
1897
+ });
1895
1898
  const now = Date.now();
1896
1899
  exiting.forEach(d => {
1897
1900
  var _ref, _d$options$loaderGcMa, _ref2, _d$options$loaderMaxA;
@@ -1899,12 +1902,7 @@ function createRouter(userOptions) {
1899
1902
  d.__.onExit == null ? void 0 : d.__.onExit({
1900
1903
  params: d.params,
1901
1904
  search: d.routeSearch
1902
- }); // // Clear actions
1903
- // if (d.action) {
1904
- // d.action.current = undefined
1905
- // d.action.submissions = []
1906
- // }
1907
- // Clear idle error states when match leaves
1905
+ }); // Clear idle error states when match leaves
1908
1906
 
1909
1907
  if (d.status === 'error' && !d.isFetching) {
1910
1908
  d.status = 'idle';
@@ -1926,16 +1924,13 @@ function createRouter(userOptions) {
1926
1924
  search: d.routeSearch
1927
1925
  });
1928
1926
  });
1929
- const entering = matches.filter(d => {
1930
- return !previousMatches.find(dd => dd.matchId === d.matchId);
1931
- });
1932
1927
  entering.forEach(d => {
1933
1928
  d.__.onExit = d.options.onMatch == null ? void 0 : d.options.onMatch({
1934
1929
  params: d.params,
1935
1930
  search: d.search
1936
1931
  });
1937
1932
  delete router.matchCache[d.matchId];
1938
- }); // router.notify()
1933
+ });
1939
1934
 
1940
1935
  if (router.startedLoadingAt !== id) {
1941
1936
  // Ignore side-effects of match loading