Glossary term
What is staleTime? Meaning for developers
In Full-Stack Questions
In TanStack Query, how long fetched data counts as fresh before it is fetched again.
Learn it properly · Full-Stack QuestionsLesson 13: Popular Libraries Interviewers Ask AboutTanStack Query, Zustand, Zod, React Hook Form, auth libraries, Redis, BullMQ, Stripe, testing tools and more.In React in Depth
In TanStack Query, staleTime is how long data counts as fresh and gcTime is how long unused data stays in the cache.
Learn it properly · React in DepthLesson 5: Data Fetching, Caching and Server Statefetch in effects and its bugs, race conditions, loading and error states, TanStack Query ideas, and Suspense with use().