query icon indicating copy to clipboard operation
query copied to clipboard

docs: clarify default behavior of invalidateQueries refetching

Open Yashkanekar opened this issue 4 months ago • 1 comments

This PR updates the documentation for the invalidateQueries method in React Query to clarify the default behavior of query invalidation and refetching.

-It explains that by default, only active queries are immediately refetched. -Inactive queries are marked stale but not automatically refetched until they become active again. -It adds instructions on how to force invalidation and refetching of all queries (both active and inactive) by using the type: 'all' or refetchType: 'all' option.

closes #9531

Yashkanekar avatar Aug 07 '25 14:08 Yashkanekar