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
When using useFetch, If you are writing to the url ref fairly quickly, there's no guarantee that the last url value in useFetch will be the one returned. You can test this fairly easily by quickly changing the url parameter on the useFetch page with refetch on: https://vueuse.org/core/useFetch/
Since the requests can return out of order, you can run into issues where you get a 404 on a correct url or have the error become out of sync:
Suggested solution
Could this perhaps be addressed by allowing previous requests to be automatically aborted if the url value changes?
Clear and concise description of the problem
When using useFetch, If you are writing to the url ref fairly quickly, there's no guarantee that the last url value in useFetch will be the one returned. You can test this fairly easily by quickly changing the url parameter on the useFetch page with refetch on:
https://vueuse.org/core/useFetch/
Since the requests can return out of order, you can run into issues where you get a 404 on a correct url or have the error become out of sync:
Suggested solution
Could this perhaps be addressed by allowing previous requests to be automatically aborted if the url value changes?
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: