React Query: Check if query is fetching or refetching
6 June 2022 (Updated 6 June 2022)
Use the isFetching
boolean property of useQuery
to check if data is being fetched for the first time or refetched:
Sources
Tagged:
React Query
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment