Skip to content
public-library›Rules›TanStack Query›Key each query by every input it uses

Key each query by every input it uses

Put every value the query function reads into the query key, as plain serializable values. The key must change whenever the request would change.

In the full rule