Repository navigation
0.70.1
trigger is typed Promise<T | undefined>, and mutate ignores an event. (#623, #630) No runtime change.
useMutation/usePost/usePut/usePatch/useDeleteanduseUpload:trigger(...)already resolvedundefinedwhen a request failed, was cancelled, or was replaced by a newertrigger, but was typedPromise<T>. It is now typedPromise<T | undefined>. UnderstrictNullChecks, reading the result without a check is now a type error; the typed error is still delivered toonError/error.useQuery'smutate: a DOM or React event passed to it (e.g.onClick={mutate}) is ignored, and the call refetches likemutate(). Before, it threw.
See "What trigger resolves to" in the data-fetching docs.