- Fixed: spinners that outlived their mutation. TanStack Query keeps a mutation pending until the promise its
onSuccessreturns has settled. Starting an import, restoring or purging a trashed file, the three feedback inbox actions, deleting a role and signing out on the web, and sign-in, sign-up, social sign-in and the passkey actions in the native app awaited or returned an invalidation there. Each now shows its toast or navigates first and starts the refetch withvoid. (#233) - A test reads every
onSuccess.scripts/no-awaited-invalidation.test.mjs(inpnpm test) fails on an awaited or returned refetch inapps/web/srcandapps/mobile/src. A helper declared in the same file is judged by what it does. Five waits are deliberate and allowlisted with a reason: reading the session again before the native app opens on it, an organization switch, and the consent switch, which is not optimistic. See conventions. (#233)
A mutation's feedback no longer waits for a refetch
Thirteen onSuccess handlers on the web and in the native app awaited or returned an invalidation, which kept the spinner on for one more round trip. They start the refetch with void now, and a test reads every onSuccess.
Edit on GitHubDocumentation is in English.