Skip to content

Glossary: React Beyond the Basics

useQuery

A TanStack Query hook that fetches data and keeps it in the cache, given a queryKey and a queryFn. It returns data, isPending and error.

Where the book teaches it

Related terms

query keycacheTanStack Query