mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
* fix(query-core): unpause a mutation that can start after its onMutate Mutation.execute() computes isPaused before it awaits the MutationCache and mutation onMutate callbacks, and dispatches pending with that value. When the mutation cannot start at that point (queued behind another mutation in its scope, or offline) but can by the time onMutate resolves, retryer.start() runs it directly instead of going through pause(), so no continue action is dispatched and the mutation reports isPaused: true for its whole request. defaultShouldDehydrateMutation and resumePausedMutations read that flag, so the in-flight mutation is dehydrated as not yet sent and runs a second time after a restore. Dispatch continue right before start() when the mutation is still marked paused but can start now, as #9015 does for a restored mutation. Source: packages/query-core/src/mutation.ts execute(), packages/query-core/src/retryer.ts start(), hydration.ts defaultShouldDehydrateMutation. * test(query-core): use createKey in mutation regression test --------- Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc> |
History
|
|
|---|---|---|
| .. | ||
| angular-query-experimental | ||
| angular-query-persist-client | ||
| eslint-plugin-query | ||
| lit-query | ||
| preact-query | ||
| preact-query-devtools | ||
| preact-query-persist-client | ||
| query-async-storage-persister | ||
| query-broadcast-client-experimental | ||
| query-codemods | ||
| query-core | ||
| query-devtools | ||
| query-persist-client-core | ||
| query-sync-storage-persister | ||
| query-test-utils | ||
| react-query | ||
| react-query-devtools | ||
| react-query-next-experimental | ||
| react-query-persist-client | ||
| solid-query | ||
| solid-query-devtools | ||
| solid-query-persist-client | ||
| svelte-query | ||
| svelte-query-devtools | ||
| svelte-query-persist-client | ||
| vue-query | ||
| vue-query-devtools | ||