@tanstack/react-router 1.74.4 → 1.74.5

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.74.4",
3
+ "version": "1.74.5",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -49,15 +49,15 @@
49
49
  "node": ">=12"
50
50
  },
51
51
  "dependencies": {
52
- "@tanstack/react-store": "^0.5.5",
52
+ "@tanstack/react-store": "^0.5.6",
53
53
  "tiny-invariant": "^1.3.3",
54
54
  "tiny-warning": "^1.0.3",
55
55
  "@tanstack/history": "1.61.1"
56
56
  },
57
57
  "devDependencies": {
58
- "@testing-library/jest-dom": "^6.5.0",
58
+ "@testing-library/jest-dom": "^6.6.2",
59
59
  "@testing-library/react": "^16.0.1",
60
- "@vitejs/plugin-react": "^4.3.2",
60
+ "@vitejs/plugin-react": "^4.3.3",
61
61
  "combinate": "^1.1.11",
62
62
  "react": "^18.2.0",
63
63
  "react-dom": "^18.2.0",
package/src/router.ts CHANGED
@@ -2481,7 +2481,11 @@ export class Router<
2481
2481
  ;(async () => {
2482
2482
  try {
2483
2483
  await runLoader()
2484
- } catch (err) {}
2484
+ } catch (err) {
2485
+ if (isResolvedRedirect(err)) {
2486
+ await this.navigate(err)
2487
+ }
2488
+ }
2485
2489
  })()
2486
2490
  } else if (status !== 'success') {
2487
2491
  await runLoader()