Skip to content
public-library›Rules›TanStack Query›Make offline behavior explicit

Make offline behavior explicit

When an app must keep working offline or restore data after a reload, choose each query's network mode from where its data comes from, show users when work is paused, and persist only versioned, non-sensitive cache entries.

In the full rule