@tanstack/react-router 1.99.6 → 1.99.7

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.99.6",
3
+ "version": "1.99.7",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -53,8 +53,8 @@
53
53
  "jsesc": "^3.1.0",
54
54
  "tiny-invariant": "^1.3.3",
55
55
  "tiny-warning": "^1.0.3",
56
- "@tanstack/router-core": "^1.99.6",
57
- "@tanstack/history": "1.99.0"
56
+ "@tanstack/history": "1.99.0",
57
+ "@tanstack/router-core": "^1.99.6"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@testing-library/jest-dom": "^6.6.3",
package/src/router.ts CHANGED
@@ -2042,6 +2042,13 @@ export class Router<
2042
2042
  ) {
2043
2043
  await this.latestLoadPromise
2044
2044
  }
2045
+
2046
+ if (this.hasNotFoundMatch()) {
2047
+ this.__store.setState((s) => ({
2048
+ ...s,
2049
+ statusCode: 404,
2050
+ }))
2051
+ }
2045
2052
  }
2046
2053
 
2047
2054
  startViewTransition = (fn: () => Promise<void>) => {