Commit aa2863c
committed
🤖 Remove unnecessary React.memo from AgentStatusIndicator
React Compiler automatically handles memoization, making manual React.memo()
redundant. The compiler is enabled via babel-plugin-react-compiler in vite.config.ts.
The component already benefits from WorkspaceStore's reference stability via
useSyncExternalStore, so React.memo() provides no additional optimization.
Follows precedent from commit e6b7b78 which removed unnecessary memoization
from PinnedTodoList with rationale: "trust the architecture."
Generated with `cmux`1 parent f87a78e commit aa2863c
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
0 commit comments