@tanstack/react-router 1.94.0 → 1.94.1
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/dist/cjs/router.cjs +4 -0
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +4 -0
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +4 -0
package/package.json
CHANGED
package/src/router.ts
CHANGED
|
@@ -2492,6 +2492,10 @@ export class Router<
|
|
|
2492
2492
|
|
|
2493
2493
|
if (prevLoaderPromise) {
|
|
2494
2494
|
await prevLoaderPromise
|
|
2495
|
+
const match = this.getMatch(matchId)!
|
|
2496
|
+
if (match.error) {
|
|
2497
|
+
handleRedirectAndNotFound(match, match.error)
|
|
2498
|
+
}
|
|
2495
2499
|
} else {
|
|
2496
2500
|
const parentMatchPromise = matchPromises[index - 1] as any
|
|
2497
2501
|
const route = this.looseRoutesById[routeId]!
|