Is there built in debounce feature?
Hi, I have two components that use the
useQuery hook with the same key practically at the same time, and I noticed that there's still only 1 request to the endpoint. Before I added react-query to the project there were 2 request which is bad of course.
I'm not sure why it is happening. I haven't changed defaults, so staleTime must be 0, right? So why I see only 1 request?2 Replies
like-gold•4y ago
Automatic deduplication 🙂
Magic 🪄
correct-apricotOP•4y ago
I have your blog in my bookmarks btw