YodelMonster
How to handle caching with Apollo?
@charles the cache itself I'm not sure how to handle. The issue comes from the handler in
triggerDeleteRecordsOptimisticEffect.ts
where the deleted record is removed from the query cache, but this is not the problem. The problem is that this handler does not invalidate or update the cache for the query that fetches the deleted records. I also don't think this can be reliably handled optimistically, since you can have any filter values (apart from the deleteAt!=null check).11 replies