@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.
@@ -1202,7 +1202,6 @@ function createRouter(userOptions) {
1202
1202
  router.startedLoadingAt = id;
1203
1203
 
1204
1204
  if (next) {
1205
- // If the location.href has changed
1206
1205
  // Ingest the new location
1207
1206
  router.location = next;
1208
1207
  } // Clear out old actions
@@ -1447,7 +1446,7 @@ function createRouter(userOptions) {
1447
1446
  const unloadedMatchIds = router.matchRoutes(next.pathname).map(d => d.matchId);
1448
1447
  [...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 => {
1449
1448
  if (unloadedMatchIds.includes(match.matchId)) {
1450
- match.isInvalid = true;
1449
+ match.invalidate();
1451
1450
  }
1452
1451
  });
1453
1452
  },
@@ -1494,7 +1493,8 @@ function createRouter(userOptions) {
1494
1493
  to = '.',
1495
1494
  search,
1496
1495
  hash,
1497
- replace
1496
+ replace,
1497
+ params
1498
1498
  } = _ref2;
1499
1499
  // If this link simply reloads the current route,
1500
1500
  // make sure it has a new key so it will trigger a data refresh
@@ -1514,7 +1514,9 @@ function createRouter(userOptions) {
1514
1514
  from: fromString,
1515
1515
  to: toString,
1516
1516
  search,
1517
- hash
1517
+ hash,
1518
+ replace,
1519
+ params
1518
1520
  });
1519
1521
  },
1520
1522
  buildLink: _ref3 => {
@@ -1852,6 +1854,9 @@ function createRouteMatch(router, route, opts) {
1852
1854
 
1853
1855
  routeMatch.__.cancelPending();
1854
1856
  },
1857
+ invalidate: () => {
1858
+ routeMatch.isInvalid = true;
1859
+ },
1855
1860
  load: async () => {
1856
1861
  const id = '' + Date.now() + Math.random();
1857
1862
  routeMatch.__.latestId = id; // If the match was in an error state, set it