@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.
- package/build/cjs/RouterProvider.js +10 -10
- package/build/cjs/RouterProvider.js.map +1 -1
- package/build/esm/index.js +10 -10
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +281 -281
- package/build/umd/index.development.js +10 -10
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/RouterProvider.tsx +10 -10
|
@@ -1160,20 +1160,20 @@
|
|
|
1160
1160
|
router.state = state;
|
|
1161
1161
|
router.startReactTransition = startReactTransition;
|
|
1162
1162
|
const tryLoad = () => {
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
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
|
-
|
|
1174
|
+
if (state.location !== router.latestLocation) {
|
|
1175
|
+
tryLoad();
|
|
1176
|
+
}
|
|
1177
1177
|
});
|
|
1178
1178
|
const nextLocation = router.buildLocation({
|
|
1179
1179
|
search: true,
|