query icon indicating copy to clipboard operation
query copied to clipboard

docs: clarify default behavior of invalidateQueries refetching

Open Yashkanekar opened this issue 6 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

View your CI Pipeline Execution ↗ for commit 4ee626cdcafb5d11590807b741738b57cbf40708

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 14s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-08-07 15:46:13 UTC

nx-cloud[bot] avatar Aug 07 '25 15:08 nx-cloud[bot]