Skip to content
Discussion options

You must be logged in to vote

You can pass a rejected promise to mutate and it will update the cache of the key with the error

mutate(() => Promise.reject(error));

Something like that should work.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pke
Comment options

@pke
Comment options

@radenkovic
Comment options

Answer selected by pke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants