05
Snapshots and observable state
Follow snapshot records from readable values through isolated writes, apply conflicts, observation, and derived state.
- A state object is a record chainExplain how one snapshot-aware state object stores versioned records and selects a readable value.4 min →
- Snapshots isolate valuesDistinguish global, read-only, mutable, and nested snapshots by what they can see and when changes become visible.4 min →
- Apply is a commit attemptTrace successful and conflicting snapshot applies without confusing consistency with recomposition scheduling.4 min →
- Mutation policies decide equivalenceCompare structural, referential, never-equal, and custom merge policies at the snapshot state boundary.4 min →
- Reads become observation edgesMap snapshot reads to composition scopes and SnapshotStateObserver callbacks without jumping ahead to frame scheduling.4 min →
- `derivedStateOf` tracks dependencies and valuesExplain how derived state caches a result, records dependencies, and compares the result seen by an observer.4 min →