Files
insomnia/packages
Curry YangandClaude Opus 5.5 6963772bae fix(landing): read the import modal's workspace name inside the cache providers
`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>
2026-11-03 16:25:21 +08:00
..