@tanstack/router-core 0.0.1-alpha.5 → 0.0.1-alpha.6

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.
@@ -317,7 +317,6 @@ function createRouter(userOptions) {
317
317
  router.startedLoadingAt = id;
318
318
 
319
319
  if (next) {
320
- // If the location.href has changed
321
320
  // Ingest the new location
322
321
  router.location = next;
323
322
  } // Clear out old actions
@@ -562,7 +561,7 @@ function createRouter(userOptions) {
562
561
  const unloadedMatchIds = router.matchRoutes(next.pathname).map(d => d.matchId);
563
562
  [...router.state.matches, ...((_router$state$pending5 = (_router$state$pending6 = router.state.pending) == null ? void 0 : _router$state$pending6.matches) != null ? _router$state$pending5 : [])].forEach(match => {
564
563
  if (unloadedMatchIds.includes(match.matchId)) {
565
- match.isInvalid = true;
564
+ match.invalidate();
566
565
  }
567
566
  });
568
567
  },
@@ -609,7 +608,8 @@ function createRouter(userOptions) {
609
608
  to = '.',
610
609
  search,
611
610
  hash,
612
- replace
611
+ replace,
612
+ params
613
613
  } = _ref2;
614
614
  // If this link simply reloads the current route,
615
615
  // make sure it has a new key so it will trigger a data refresh
@@ -629,7 +629,9 @@ function createRouter(userOptions) {
629
629
  from: fromString,
630
630
  to: toString,
631
631
  search,
632
- hash
632
+ hash,
633
+ replace,
634
+ params
633
635
  });
634
636
  },
635
637
  buildLink: _ref3 => {
@@ -967,6 +969,9 @@ function createRouteMatch(router, route, opts) {
967
969
 
968
970
  routeMatch.__.cancelPending();
969
971
  },
972
+ invalidate: () => {
973
+ routeMatch.isInvalid = true;
974
+ },
970
975
  load: async () => {
971
976
  const id = '' + Date.now() + Math.random();
972
977
  routeMatch.__.latestId = id; // If the match was in an error state, set it