@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.
@@ -749,6 +749,12 @@ class Router {
749
749
  while (this.latestLoadPromise && loadPromise !== this.latestLoadPromise) {
750
750
  await this.latestLoadPromise;
751
751
  }
752
+ if (this.hasNotFoundMatch()) {
753
+ this.__store.setState((s) => ({
754
+ ...s,
755
+ statusCode: 404
756
+ }));
757
+ }
752
758
  };
753
759
  this.startViewTransition = (fn) => {
754
760
  const shouldViewTransition = this.shouldViewTransition ?? this.options.defaultViewTransition;