fate

A modern data client for React.

Search Login
Thinking...

Live views over a single SSE stream

Realtime
#normalized-cache
#live-views
👍107 likes

useLiveView has the same shape as useView, but it subscribes to updates for the selected object through the native live transport. The client keeps one SSE stream open, sends subscribe and unsubscribe control messages, and merges returned records into the same normalized cache used by requests and mutations. Components keep their view definitions and just opt into live data.

- Mika

3 Comments

Christoph

The single SSE connection model is reassuring; we were worried live views would create one stream per card.

Dina

The search route feels more convincing when it can find live views, adapters, and migration content.

Lena

Connection identity following Relay semantics is a strong choice for teams that already know that model.

Add a comment