query
query copied to clipboard
docs: clarify default behavior of invalidateQueries refetching
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