Skip to content
Discussion options

You must be logged in to vote

Hi 👋

As far as I'm aware the options for error handling are:

  1. Query cache options.
  2. Mutation cache options.
  3. Query client default query options.
  4. Query client default mutation options.
  5. useQuery options.
  6. useMutation options.
  7. useMutation mutation function options.

So my first question is, what exactly is this observer in those error handlers will be executed for every observer (=useQuery instance).. and whats does this means to the UI?

I think the observers are the useQuery instances. This means that if you define the callback at query hook level and have multiple instances of the hook, then the callback will execute once per observer, which could be undesirable.

My Second question is, why…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stephen-liu-fipo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants