@tanstack/router-core 0.0.1-beta.175 → 0.0.1-beta.177
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/router.js +6 -12
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +6 -12
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +124 -124
- package/build/types/router.d.ts +0 -1
- package/build/umd/index.development.js +6 -12
- 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 +1 -1
- package/src/router.ts +6 -13
|
@@ -899,7 +899,7 @@
|
|
|
899
899
|
};
|
|
900
900
|
#onFocus = () => {
|
|
901
901
|
if (this.options.refetchOnWindowFocus ?? true) {
|
|
902
|
-
this.
|
|
902
|
+
this.invalidate();
|
|
903
903
|
}
|
|
904
904
|
};
|
|
905
905
|
update = opts => {
|
|
@@ -1282,9 +1282,6 @@
|
|
|
1282
1282
|
preloadMaxAge: 0
|
|
1283
1283
|
}));
|
|
1284
1284
|
});
|
|
1285
|
-
} else {
|
|
1286
|
-
// If we're preloading, clean preload matches before we try and use them
|
|
1287
|
-
this.cleanMatches();
|
|
1288
1285
|
}
|
|
1289
1286
|
let firstBadMatchIndex;
|
|
1290
1287
|
|
|
@@ -1421,13 +1418,6 @@
|
|
|
1421
1418
|
});
|
|
1422
1419
|
await Promise.all(matchPromises);
|
|
1423
1420
|
};
|
|
1424
|
-
reload = () => {
|
|
1425
|
-
return this.navigate({
|
|
1426
|
-
fromCurrent: true,
|
|
1427
|
-
replace: true,
|
|
1428
|
-
search: true
|
|
1429
|
-
});
|
|
1430
|
-
};
|
|
1431
1421
|
resolvePath = (from, path) => {
|
|
1432
1422
|
return resolvePath(this.basepath, from, cleanPath(path));
|
|
1433
1423
|
};
|
|
@@ -1905,7 +1895,11 @@
|
|
|
1905
1895
|
});
|
|
1906
1896
|
}
|
|
1907
1897
|
if (opts?.reload ?? true) {
|
|
1908
|
-
return this.
|
|
1898
|
+
return this.navigate({
|
|
1899
|
+
fromCurrent: true,
|
|
1900
|
+
replace: true,
|
|
1901
|
+
search: true
|
|
1902
|
+
});
|
|
1909
1903
|
}
|
|
1910
1904
|
};
|
|
1911
1905
|
}
|