Query manual refetch indicator
Hey, guys!
I am using a query in react native with the Flatlist pull to refresh functionality, which requires a "refreshing" prop to indicate the data update is in progress.
I tried using the
My current workaround is creating a React ref that is updated before and after the
But I would like to know if there is a built in alternative to achieve the same behavior
I am using a query in react native with the Flatlist pull to refresh functionality, which requires a "refreshing" prop to indicate the data update is in progress.
I tried using the
query.isRefetching property for that purpose, but looks like it doesn't differentiate between a manual refetch with query.refetch and a invalidation with queryClient.invalidateQueries.My current workaround is creating a React ref that is updated before and after the
refetch function execution:But I would like to know if there is a built in alternative to achieve the same behavior