perf: add React.memo to board-card and board-column #1151
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/agent-hooks#1151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As an operator with many issues on the board, I want card and column components to skip unnecessary re-renders, so that drag interactions and SSE updates stay smooth.
Context
React.memois used in only 9 places across the whole codebase. Two high-churn components that receive stable props are missing it:apps/web/src/components/board/board-card.tsx(~660 lines) — rendered once per card per column updateapps/web/src/components/board/board-column.tsx(~633 lines) — rendered once per column on any board state changeBoth are pure presentational components; their props change only when the underlying data changes, not on every SSE tick.
Acceptance criteria
Fix
BoardCardexport withReact.memoBoardColumnexport withReact.memouseMemo/useCallbackin parent if any inline object/function creation is found)Tests
just qapassesOut of scope
tanstack/react-virtual)