@tanstack/react-router 0.0.1-beta.238 → 0.0.1-beta.239

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.
@@ -1464,8 +1464,7 @@
1464
1464
  };
1465
1465
  }, [router.history]);
1466
1466
  useLayoutEffect$1(() => {
1467
- if (!isTransitioning && !routerState.isLoading && routerState.resolvedLocation !== routerState.location) {
1468
- console.log('onResolved', routerState.location);
1467
+ if (routerState.isTransitioning && !isTransitioning && !routerState.isLoading && routerState.resolvedLocation !== routerState.location) {
1469
1468
  router.emit({
1470
1469
  type: 'onResolved',
1471
1470
  fromLocation: routerState.resolvedLocation,
@@ -1479,7 +1478,7 @@
1479
1478
  resolvedLocation: s.location
1480
1479
  }));
1481
1480
  }
1482
- }, [isTransitioning, routerState.isLoading]);
1481
+ }, [routerState.isTransitioning, isTransitioning, routerState.isLoading, routerState.resolvedLocation, routerState.location]);
1483
1482
  useLayoutEffect$1(() => {
1484
1483
  if (!window.__TSR_DEHYDRATED__) {
1485
1484
  tryLoad();
@@ -2896,7 +2895,9 @@
2896
2895
  isLoading: false,
2897
2896
  isTransitioning: false,
2898
2897
  status: 'idle',
2899
- resolvedLocation: location,
2898
+ resolvedLocation: {
2899
+ ...location
2900
+ },
2900
2901
  location,
2901
2902
  matches: [],
2902
2903
  pendingMatches: [],