Course lesson
Configure gcTime (garbage collection) within React Query
gcTime stands for "garbage collection time" and it is the amount of time that must pass, when there are no components actively using a query, before the query is cleared from the cache.
- Duration
- 1 min
- Access
- Included
- Transcript
- Retained from source evidence
gcTime stands for "garbage collection time" and it is the amount of time that must pass, when there are no components actively using a query, before the query is cleared from the cache.
It is set independently from stale time!