Observable Data Source Binding
The grid can subscribe to any observable-like source (an object with subscribe that returns an unsubscribe function) that emits full snapshots or transactions. Subscription lifecycle and cleanup are handled automatically. It works with native libraries without a hard dependency on any of them.
Planned. This page shows the specification from issue #179. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A mock subscribable emitting a snapshot, then periodic transactions.
Expected behavior
Snapshots are applied as deltas, transactions are applied directly, loading emissions show the overlay and errors show the error overlay. Swapping sources unsubscribes the old one.
Planned API surface
rowDataSource (Subscribable)SubscribableEmission ({type:'snapshot'|'transaction'|'error'|'loading'})onSourceErrorAcceptance criteria
- The grid subscribes on init and unsubscribes on destroy or source change (pending)
- No emissions are processed after unsubscribe (pending)
- Error emissions route to the error overlay (pending)
- Duck typing works without imported types (pending)