Update cache and pagination when you Delete an Item
wesbos opened this issue · comments
need to hook this up for apollo 3
The old way still works, but I'd like to see if we can use cache.evict(id)
here.
Also need to see if the new apollo cache can fix the pagination issue.
Currently re-watching https://www.youtube.com/watch?v=n_j8QckQN5I&t=1827s
Pretty much done this. I have all the cache normalization done, I just need to now figure out how to re-render the current items when you delete an item.
Also need to figure out the opposite. When you add an item, it puts it at the front of the cache.
I'm gonna say this is good to go!