@remix-run/router 0.0.0-experimental-73fcb9b28 → 0.0.0-experimental-bcda00aaf

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remix-run/router",
3
- "version": "0.0.0-experimental-73fcb9b28",
3
+ "version": "0.0.0-experimental-bcda00aaf",
4
4
  "description": "Nested/Data-driven/Framework-agnostic Routing",
5
5
  "keywords": [
6
6
  "remix",
package/router.ts CHANGED
@@ -1525,7 +1525,10 @@ export function createRouter(init: RouterInit): Router {
1525
1525
 
1526
1526
  let routesToUse = inFlightDataRoutes || dataRoutes;
1527
1527
  let loadingNavigation = opts && opts.overrideNavigation;
1528
- let matches = matchRoutes(routesToUse, location, basename);
1528
+ let matches =
1529
+ isUninterruptedRevalidation && inFlightDataRoutes == null
1530
+ ? state.matches
1531
+ : matchRoutes(routesToUse, location, basename);
1529
1532
  let flushSync = (opts && opts.flushSync) === true;
1530
1533
 
1531
1534
  let fogOfWar = checkFogOfWar(matches, routesToUse, location.pathname);