1. 14
    Evict deleted items from the Apollo cache
    4m 9s

Evict deleted items from the Apollo cache

Share this video with your friends

Send Tweet

When deleting an item, we express our intent to completely remove all traces of it. If the mutation succeeds, that means it's gone from the backend as well. But some components external to our note list, might still be listening to our deleted item. To ensure they get the update, we can completely evict the normalised instance from the cache using the cache.evict() method.