T
TanStack•3y ago
protestant-coral

onError global cache-level callbacks

Hi ! How can I prevent a component that throws an error from using the global onError? In other words, how can we avoid the global onError from executing sometimes?
No description
5 Replies
fair-rose
fair-rose•3y ago
use the meta and check it there
fair-rose
fair-rose•3y ago
it'll always run, but you can decide to not show a toast in there ?
protestant-coral
protestant-coralOP•3y ago
yes I mean how to implement a mechanism where in some cases, I won't want to display the toast.
fair-rose
fair-rose•3y ago
Breaking React Query's API on purpose
Why good API design matters, even if it means breaking existing APIs in the face of resistance.
protestant-coral
protestant-coralOP•3y ago
Thanks Thanks !!! 🙂 ! have a good day !

Did you find this page helpful?