@tanstack/router-devtools 0.0.1-beta.273 → 0.0.1-beta.275

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.
@@ -311,9 +311,13 @@
311
311
  return updater;
312
312
  }
313
313
 
314
- const routerContext = /*#__PURE__*/React__namespace.createContext(null);
314
+ let routerContext = /*#__PURE__*/React__namespace.createContext(null);
315
315
  if (typeof document !== 'undefined') {
316
- window.__TSR_ROUTER_CONTEXT__ = routerContext;
316
+ if (window.__TSR_ROUTER_CONTEXT__) {
317
+ routerContext = window.__TSR_ROUTER_CONTEXT__;
318
+ } else {
319
+ window.__TSR_ROUTER_CONTEXT__ = routerContext;
320
+ }
317
321
  }
318
322
  function useRouterState(opts) {
319
323
  const router = useRouter();