fate

A modern data client for React.

Search Login
Thinking...

Keeping deletions consistent across lists

Realtime
#optimistic-updates
#live-views
👍64 likes

Deletion events are just as important as updates. If a comment disappears, fate removes the record from the normalized cache and prunes lists or object fields that reference it. The demo comment controls exercise that behavior so the post detail route, live comment list, and comment count stay aligned after a mutation completes.

- Sora

3 Comments

Ari

I like that the same records can appear in the feed, categories, search, and detail pages without duplicate cache data.

Lena

The stable ref change sounds small, but it explains a lot of the rerender fixes in the history.

Ari

Deletion pruning is the kind of edge case that usually gets missed in hand-written cache updates.

Add a comment