Update data from polling only when the data changes - TanStack