@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.
@@ -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
- if (match.__.loadPromise) {
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
  }