@tanstack/react-router 0.0.1-beta.233 → 0.0.1-beta.234

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.
@@ -1160,20 +1160,20 @@
1160
1160
  router.state = state;
1161
1161
  router.startReactTransition = startReactTransition;
1162
1162
  const tryLoad = () => {
1163
- if (state.location !== router.latestLocation) {
1164
- startReactTransition(() => {
1165
- try {
1166
- router.load();
1167
- } catch (err) {
1168
- console.error(err);
1169
- }
1170
- });
1171
- }
1163
+ startReactTransition(() => {
1164
+ try {
1165
+ router.load();
1166
+ } catch (err) {
1167
+ console.error(err);
1168
+ }
1169
+ });
1172
1170
  };
1173
1171
  useLayoutEffect$1(() => {
1174
1172
  const unsub = router.history.subscribe(() => {
1175
1173
  router.latestLocation = router.parseLocation(router.latestLocation);
1176
- tryLoad();
1174
+ if (state.location !== router.latestLocation) {
1175
+ tryLoad();
1176
+ }
1177
1177
  });
1178
1178
  const nextLocation = router.buildLocation({
1179
1179
  search: true,