Skip to content

Commit afb3d3e

Browse files
perf(mobile): ThreadFeed compiles with the React Compiler
ThreadFeed's render props read `props.listRef`, which the compiler treats as a ref read during render. The component now destructures its ref and callbacks, the attachment opener settles its download and command result instead of throwing inside try/finally, and the manual useMemo/useCallback around its handlers and derived data are gone. use-thread-selection kept the last complete route params in a ref that it read during render. They are now previous-value state, and the pending creation is compared by contents so the compiled hook does not set state on every render. Both files leave KNOWN_BAILOUTS. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent f094f09 commit afb3d3e

3 files changed

Lines changed: 524 additions & 674 deletions

File tree

0 commit comments

Comments
 (0)