Skip to content
Discussion options

You must be logged in to vote

What happens when the data from the endpoint hasn't been received back yet and a rerender occurs. I kinda just assume it ignores the repeated request and doesn't make another call.

Yes, that's right. If a request is in-flight, all useQuery instances (even those that mount afterwards) will pick up the running Promise.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dominicboston-kaluza
Comment options

Answer selected by dominicboston-kaluza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants