mirror of
https://github.com/Kong/insomnia.git
synced 2026-11-04 03:55:19 -05:00
`Root` read `useWorkspaceLoaderData()` in its own body for the import modal's header. Since the workspace facade derives its project fields from the organization data query, that read calls `useDBQueryClient`, and Root's body sits outside `AppDataCacheProvider`, which Root itself renders: every render threw "useDBQueryClient must be used within an AppDataCacheProvider". The read moves into `RootImportModal`, rendered inside the providers. It also means Root no longer subscribes to organization data, so it doesn't re-render on every change to it; the modal only reads it while open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>