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