YodelMonster
YodelMonster
TTwenty
Created by YodelMonster on 10/1/2024 in #❓︱help
How to handle caching with Apollo?
I was looking into this issue. The RCA is that the cache for records is updated (optimistically), but the cache for fetching from the same data source for deleted records with a filter criteria is not updated. Hence the records still show in the deleted list. The question is, how do I handle this scenario? Do I update cache for the query with filter? This could have many different possible filter values, so updating all of them does not seem ideal. So do I just set that query as invalidated? For that I will need to know all possible filter combinations again?
11 replies