-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
New requests not fired when dependency array changes #156
Comments
One sec, taking a look now. |
Omg, you are totally right. I bumped to 0.2.4 (I was on 0.2.1 locally, not sure about what version codesandbox was using) and now it works like a charm! Big thanks for the quick response! Cheers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Thanks for the excellent work on this library!
I ran into some issues today, and I'm not sure that this is because of some bug, or simply because I have misunderstood how the API is supposed to work. The case has to do with firing new requests as entries in the dependency array changes.
For instance, I was expecting the following to fire a new request whenever
id
changes:What happens is that the request is initially fired on mount, but as
id
changes, nothing happens.I've probably misunderstood how this is supposed to work, but if not then this might be some bug that I'm hitting. I have a complete example reproducing it available here: https://codesandbox.io/s/usefetch-dependency-array-slsb9?fontsize=14&hidenavigation=1&theme=dark
Thanks,
Jesper
The text was updated successfully, but these errors were encountered: