-
Notifications
You must be signed in to change notification settings - Fork 463
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
userQuery with pause=true still issues an initial request #300
Comments
We have tests and strong guarantees around this and in our hook we return very early when pause is true. Can you check whether pause is really set as expected? And can you maybe provide a reproduction on CodeSandbox or something else please that demonstrates this? That's be very helpful to investigate this and make sure it's reproducible 👍 |
I tried this out and unfortunately can't reproduce it. I'll close this issue due to inactivity but if you have more details we can reopen it 🙌 Maybe you had a timing issue in your code or sth that flips |
Hey @kitten, I think the |
@narinluangrath thanks for the awesome reproduction, this lead to a quick find. |
@JoviDeCroock @narinluangrath I'll release another patch in an hour or two 👍 |
@narinluangrath Sorry again about this! |
@kitten I'm confused why query is executing while it's paused. Is it the designed behaviour? |
@ifokeev Nope that is not the designated behavior. Could you reproduce the issue? |
I have a search query that I want to execute as soon as something has been entered into a input field so I use "useQuery" with pause: input != "". Though a query is still being issues on mount even though pause is true.
The text was updated successfully, but these errors were encountered: