You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you can just do useFetch(`api/product/${id}`, [id])
this is a feature that would need to be implemented. I'm open to it. Submit a PR. I think the best way to do this would be to check if the dependency is undefined.
fkrafi
added a commit
to fkrafi/use-http
that referenced
this issue
Nov 9, 2021
Describe the bug
Fetch is called in spite of conditional variable value is undefined
Expected behavior
Fetch shouldn't call the api when the conditional variables are undefined
The text was updated successfully, but these errors were encountered: