@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
package/package.json
CHANGED
package/src/router.ts
CHANGED
|
@@ -246,8 +246,9 @@ export interface MatchLocation {
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
export interface MatchRouteOptions {
|
|
249
|
-
pending
|
|
249
|
+
pending?: boolean
|
|
250
250
|
caseSensitive?: boolean
|
|
251
|
+
fuzzy?: boolean
|
|
251
252
|
}
|
|
252
253
|
|
|
253
254
|
type LinkCurrentTargetElement = {
|
|
@@ -924,15 +925,16 @@ export function createRouter<
|
|
|
924
925
|
const matchPromises = resolvedMatches.map(async (match) => {
|
|
925
926
|
// Validate the match (loads search params etc)
|
|
926
927
|
match.__.validate()
|
|
927
|
-
match.load(loaderOpts)
|
|
928
928
|
|
|
929
929
|
const search = match.search as { __data?: any }
|
|
930
930
|
|
|
931
|
-
if (search.__data && search.__data.matchId !== match.matchId) {
|
|
931
|
+
if (search.__data?.matchId && search.__data.matchId !== match.matchId) {
|
|
932
932
|
return
|
|
933
933
|
}
|
|
934
934
|
|
|
935
|
-
|
|
935
|
+
match.load(loaderOpts)
|
|
936
|
+
|
|
937
|
+
if (match.status !== 'success' && match.__.loadPromise) {
|
|
936
938
|
// Wait for the first sign of activity from the match
|
|
937
939
|
await match.__.loadPromise
|
|
938
940
|
}
|