@tanstack/router-core 0.0.1-beta.31 → 0.0.1-beta.33
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 +4 -3
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +4 -3
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +130 -130
- package/build/types/index.d.ts +2 -1
- package/build/umd/index.development.js +4 -3
- 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 -4
|
@@ -1943,14 +1943,15 @@
|
|
|
1943
1943
|
},
|
|
1944
1944
|
loadMatches: async (resolvedMatches, loaderOpts) => {
|
|
1945
1945
|
const matchPromises = resolvedMatches.map(async match => {
|
|
1946
|
+
var _search$__data;
|
|
1946
1947
|
// Validate the match (loads search params etc)
|
|
1947
1948
|
match.__.validate();
|
|
1948
|
-
match.load(loaderOpts);
|
|
1949
1949
|
const search = match.search;
|
|
1950
|
-
if (search.__data && search.__data.matchId !== match.matchId) {
|
|
1950
|
+
if ((_search$__data = search.__data) != null && _search$__data.matchId && search.__data.matchId !== match.matchId) {
|
|
1951
1951
|
return;
|
|
1952
1952
|
}
|
|
1953
|
-
|
|
1953
|
+
match.load(loaderOpts);
|
|
1954
|
+
if (match.status !== 'success' && match.__.loadPromise) {
|
|
1954
1955
|
// Wait for the first sign of activity from the match
|
|
1955
1956
|
await match.__.loadPromise;
|
|
1956
1957
|
}
|