Phase 08Streaming, and designing for wrongness392 of 434
Optimistic state when the answer might change
Show something immediately, reconcile when the real output lands, and never let the reconciliation lose the edit the user just made.
Build40 minAI inside
Build this in your own editor
This one runs on your machine rather than in the browser workbench. Work to the outcomes below, then come back and mark it complete.
You should now be able to
- Render an optimistic state and reconcile it with the response
- Handle a user edit that arrives mid-stream
- Keep two out-of-order responses from overwriting each other
Loading…