Tag
Posts tagged UX engineering.
2 posts filed under UX engineering. Sorted newest first.
- 01Deep diveOne click, 221 re-renders: React Context can't subscribe to a fieldI memoized the context value and wrapped the hot components in React.memo, standard advice, and one click still re-rendered a list 221 times. Context notifies every consumer when the value object's identity changes, regardless of which field a consumer reads, and no memo can stop that. The fix: a selector-based Zustand store.
- 02Deep diveTwo event pipelines, one UI timelineEvery AI agent UI is secretly two UIs: one renders events live over SSE, the other rebuilds the same timeline from the database on reload. They have to match exactly, and five separate bugs, from parsing to null handling to ordering, proved they easily don't.