diff --git a/packages/react-router/src/router.ts b/packages/react-router/src/router.ts index 9b2837740b..a073ad466e 100644 --- a/packages/react-router/src/router.ts +++ b/packages/react-router/src/router.ts @@ -811,7 +811,7 @@ export class Router< if (typeof document !== 'undefined') { ;(window as any).__TSR__ROUTER__ = this this.streamedKeys = new Set( - Object.keys(window!.__TSR__?.streamedValues || {}), + Object.keys(window.__TSR__?.streamedValues || {}), ) }