What causes `queryClient.invalidateQueries()` to error when all requests are good?
The
notify.promise function is from react-toastify and basically just shows a message with a spinner while pending, and then switches to either the success or the error message depending on whether the promise was fulfilled or rejected.By adding
throwOnError: true I thought this would do what I expected. Show sucess normally, and show error if any of the refetching queries failed. But seems the promise from invalidateQueries have some other error condition causing it to fail as well?I'm getting the error message, but when I check the console and the network log, I see no requests that have failed, all is OK. Does
invalidateQueries have a bug? Does it have a timeout of some sort? What's going on here?