No data from useQuery with enabled: false after reloading the page #2609
Unanswered
stsiushkevich
asked this question in
Q&A
Replies: 1 comment 2 replies
-
please create a codesandbox reproduction, and preferably with v3. If it works with v3 I would suggest upgrading, we have a great guide for that: https://react-query.tanstack.com/guides/migrating-to-react-query-3 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I use an option { enabled: false } for my query to use it with refetch method. When I reload the page the request is completing. Data is returned from the server, but I cannot get it from useQuery. I investigated the code of the library and found such thing: my query doesn't have any observers:
When I don't reload the page AND use the navigation AND navigate to this page the second time I don't have such problem.
the version is "react-query": "2.26.4"
Beta Was this translation helpful? Give feedback.
All reactions