Repository navigation
Commit bde0780
docs(agents): rule out depending on a useMemo/useCallback identity (#9257)
Eight separately-filed instances were one defect shape: code resting on the
identity of a memoised value or callback, which React documents as a
performance hint whose cache it may discard. Write the rule once in section 5
next to the other React authoring commandments, state the value-side /
effect-side seam the family measured, and declare in the rule text that
nothing enforces it — a lint rule reaches the same-file shape only.
Claude-Session: https://claude.ai/code/session_01MCLBsUgfykL74aU716rzVK
Co-authored-by: Claude <noreply@anthropic.com>1 parent b2bb813 commit bde0780
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
0 commit comments