@tanstack/react-router 1.34.1 → 1.34.3

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/src/router.ts CHANGED
@@ -1525,8 +1525,9 @@ export class Router<
1525
1525
 
1526
1526
  this.__store.setState((s) => ({
1527
1527
  ...s,
1528
- statusCode:
1529
- redirect?.statusCode || notFound
1528
+ statusCode: redirect
1529
+ ? redirect.statusCode
1530
+ : notFound
1530
1531
  ? 404
1531
1532
  : s.matches.some((d) => d.status === 'error')
1532
1533
  ? 500
@@ -2230,11 +2231,6 @@ export class Router<
2230
2231
  return match
2231
2232
  }
2232
2233
 
2233
- /**
2234
- * @deprecated Injecting HTML directly is no longer supported. Use the new <ScriptOnce /> component instead.
2235
- */
2236
- injectHtml = async (html: string | (() => Promise<string> | string)) => {}
2237
-
2238
2234
  // We use a token -> weak map to keep track of deferred promises
2239
2235
  // that are registered on the server and need to be resolved
2240
2236
  registeredDeferredsIds = new Map<string, {}>()