Skip to content
public-library›Rules›TanStack Query›Derive component views of query data with a stable select

Derive component views of query data with a stable select

When a component needs only part of a query's data, or a value derived from it, compute it with the query's select option, and keep the selector's reference stable.

In the full rule