-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
useErrorBoundary option works in useQueries? #2395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have the same problem but it does not work yet: #2109 |
Related: #1523 |
does |
It works in I'm not trying to report a bug its just a question, thats why I did not created a Sandbox. I asked in discussions but got no replies |
That wasn’t the question though. Does it work in useQueries without suspense? Trying to narrow down if it’s useQueries+suspense related, because for that we already have an issue and yes, that doesn’t work yet |
Yes useQueries works perfectly without suspense! I only missed an option for refetchInterval in useQueries |
okay, I've made a reproduction: https://codesandbox.io/s/holy-darkness-qy5tw?file=/src/index.js even with However, I think that the open PR that tries to solve #1523 will also fix this issue, see: If I try out the above reproduction with that PR preview build, it seems to work: https://codesandbox.io/s/tannerlinsleyreact-query-basic-forked-vi4gt |
Discussed in #2355
Originally posted by luizeboli June 8, 2021
Hello guys, I have this hook:
The component that consumes this hook is wrapped by a
ErrorBoundary
, but it doesn't throw while usinguseQueries
. It just works withuseQuery
.The only change needed to work correctly is replace
useQueries
byuseQuery
.Is this an expected behavior? I didn't find it in docs
The text was updated successfully, but these errors were encountered: