Utilizing newData and oldData properties in refetchInterval
I would like to base the number returned by my
refetchInterval function on whether newData and oldData are equal. I have looked at structuralSharing and the deprecated isDataEqual options, but it seems like both of these have changing the result of the query in mind. I just want to be able to leverage this property to make a judgment about how fast to refetch. How can I do this? Would I need to provide a function to structuralSharing and then pass the query into the refetchInterval function and try to access this property from the query object?