Closed ElisePatrikainen closed 5 months ago
@posva I initially thought of tracking the instances where queries are used, and triggering the gc timeout when all instances are unmounted (ie when the query becomes inactive) but I didn’t find a way to track it. Therefore, as a first step, I am triggering it at each fetch (which, I think, could at least cover a consistent part of the cases, because it seems quite likely that, in the case of an active query, it would be refetch before the completion of the gcTime).
✅ Deploy Preview for funny-banoffee-0afb46 canceled.