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

refetchOnMount = false prevents calling of function in concurrent-mode #465

Closed
Domino987 opened this issue May 7, 2020 · 1 comment
Closed
Labels

Comments

@Domino987
Copy link
Contributor

By setting refetchOnMount to false for useQuery for react@experimental and concurrent mode, the query functions are not called anymore.

The error will be called 3 times and the query will settle with errors, instead of calling the function at all.

It works fine for 1.2.x version of react-query, but fails since 1.3.x. Do you know what might cause this?

ReactDOM.createRoot(rootElement).render( <ReactQueryConfigProvider config={{ refetchOnMount: false }}> <App /> </ReactQueryConfigProvider> );

This will cause all queries to fail.

Sandbox

Thank you for this great library.

@tannerlinsley
Copy link
Collaborator

🎉 This issue has been resolved in version 1.3.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants