@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-router",
3
- "version": "1.94.0",
3
+ "version": "1.94.1",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
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]!