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
QueryErrorResetBoundary not rest when i have enabled option #2930
Comments
I think what happens is the following:
it's a bit tricky. I think what should happen is that the query goes from |
🎉 This issue has been resolved in version 3.32.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@TkDodo
sorry ,my English is bad,i am a litter confusing about this.😵 |
what you would need to do is:
I have forked your example here: https://codesandbox.io/s/refetch-with-enabled-false-forked-mmc9d?file=/src/index.js However, you are right, the fix did introduce another "bug". Now, I need to think about how to solve that, because in the original issue, we explicitly did not want disabled queries to throw, but now we do :/ |
@TkDodo
so if i use local state to do this, i should let it seems like side effect.... then i found
I have no idea about this, not only I edit demo code .you can see SecondCpt get error state in mount,but enable is false,the query state should be idle ? I think this behavior is most better . btw: should i open a new issue or a discussions about this? |
@WeiShengv99 can you test with this PR please: #2935 |
Describe the bug
QueryErrorResetBoundary rest dont work with useQuery has changable 'enabled' option,
I don't know if this is the correct behavior?
To Reproduce
just click try again button
demolink
Expected behavior
i hope queryfn recall when i reset
Desktop (please complete the following information):
OS: MacOS
Browser: Chrome
Version: latest
Smartphone (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: