fate

A modern data client for React.

Search Login
Thinking...

Garbage collection for request lifetimes

Release Notes
#normalized-cache
#async-react
👍58 likes

The cache now tracks retained requests so screens can release data when they unmount and let garbage collection clean up records that are no longer needed. For manual client.request calls, code can retain the descriptor for as long as the work needs it. The important part is that cache lifetime becomes explicit without forcing every component to think about cleanup.

- Kai

2 Comments

Kai

Explicit retain and release behavior answers the question of how long normalized data should live.

Sora

This makes me want a small debugging panel that shows which views selected a field.

Add a comment