staleTime property

Duration staleTime
final

How long data remains fresh before being considered stale

After this duration, queries will refetch on mount/focus/reconnect (depending on refetch settings). Does not affect cache retention.

Default: 30 seconds

Implementation

final Duration staleTime;