mirror of
https://github.com/Kong/insomnia.git
synced 2026-11-01 10:41:00 -05:00
[INS-3831](https://konghq.atlassian.net/browse/INS-3831) ## Summary - Extract `useRootLoaderData` + `RootLoaderData` from `src/root.tsx` into `src/ui/hooks/use-root-loader-data.ts`. - Repoint all 65 importers from `~/root` to the new module, plus the two `vi.mock('~/root')` test stubs; remove the now-dead exports (and divergent stale shape) from root.tsx; annotate `clientLoader` return as `Promise<RootLoaderData>`. - Hook return type keeps the documented `| undefined` contract of `useRouteLoaderData`. ## Why root.tsx imports modals/settings/codemirror modules which import `useRootLoaderData` back — 55 of the 83 baselined cycles close through this single edge.