Configure gcTime (garbage collection) within React Query

InstructorTomasz Ducin

Share this video with your friends

Send Tweet

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!