Skip to content
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

fix(useQuery): don't throw error if errorBoundary has just been reset #2935

Merged

Commits on Nov 12, 2021

  1. fix(useQuery): don't throw error if errorBoundary has just been reset

    the fix for disabled queries was wrong, because disabled queries still need to throw if they are fetching due to some other means, like `refetch`. However, if a query has just been reset, we want to skip throwing for one render cycle. The useEffect that clears the reset will then make sure that further errors will be thrown
    TkDodo committed Nov 12, 2021
    Copy the full SHA
    df2ea39 View commit details
    Browse the repository at this point in the history