You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs, the error returned by useMutation can either be null or Error.
However, it can also be undefined when mutationReducer returns a new state object without the error property. types/test.ts suggests that this is intended.
If so, the docs should say null | undefined | Error.
I'm opening an issue instead of a PR for the docs, in case you want to change the reducer instead.
The text was updated successfully, but these errors were encountered:
According to the docs, the
error
returned byuseMutation
can either benull
orError
.However, it can also be
undefined
when mutationReducer returns a new state object without theerror
property. types/test.ts suggests that this is intended.If so, the docs should say
null | undefined | Error
.I'm opening an issue instead of a PR for the docs, in case you want to change the reducer instead.
The text was updated successfully, but these errors were encountered: