Interactive Demos

Lazy Query Patterns

TanStack Query queries that don't run automatically on mount. Learn how to control when data fetching happens using the enabled option, refetch(), and skipToken.

Manual Fetch

Use enabled: false with refetch() to manually trigger queries

Conditional Query

Use enabled: !!value to activate queries based on state

Skip Token

Use skipToken to declaratively skip queries when data is missing