mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-25 17:22:27 +08:00
The import mutation's onSettled awaited every affected refresh, including the discover list, which downloads each repository from GitHub (up to 60s per repo). TanStack Query only settles a mutation after onSettled resolves, so isPending stayed true and the import dialog could not be cancelled or closed until discover finished. The discover segment stays mounted once opened, so this hit anyone who had visited it on a slow GitHub connection. Only await the installed and unmanaged refreshes the dialog depends on; repos and discover are still invalidated in the background. Fixes #7994