Repository navigation
Commit 18fc403
perf(mobile): Home's thread handler survives its parent re-rendering
Called as props.onSelectThread(...), the React Compiler cached the handler on the
whole props object, which Home's parent replaces on every render (the connection
status flips it every few seconds). Every visible row then re-rendered.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 18bdcdc commit 18fc403
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
493 | 496 | | |
494 | 497 | | |
495 | 498 | | |
| |||
500 | 503 | | |
501 | 504 | | |
502 | 505 | | |
503 | | - | |
| 506 | + | |
504 | 507 | | |
505 | 508 | | |
506 | 509 | | |
| |||
0 commit comments