[DevTools] Fix Profiler crash when recording why a memo() wrapper rendered #37819

Open
hoxyq opened 5:27pm on October 12, 2026 wants to merge 131 Δ into facebook/react main from
devtools-memo-change-descriptions

Pull request #37819 quality checks

Code files and functions touched by this pull request are analyzed below.

Quality targets

How does this pull request compare to chosen code quality targets? Read more about code quality targets.

Target name Target value This PR
Maximum Diff Delta per PR 500 131
Maximum comment count per PR 10 1
Pull request maximum business days between activity 3 25
Pull request maximum business days open 5 25

Coupled files

Are there any files from this commit that are always committed alongside another file? This often suggests that there exists code coupling to potentially remove. Read more about code coupling

No file coupling detected. 🎉

Biggest files changes in pull request

Path View whole file Lines removed Lines added Final line count
packages/react-devtools-shared/src/__tests__/profilerChangeDescriptions-test.js 0 172 322
packages/react-devtools-shared/src/backend/fiber/renderer.js 3 23 8102

️ Biggest functions grown or shrunk by pull request

Which functions had their line count change as part of this pull request?

Qualified function name View whole function Lines removed Lines added Final line count
createVirtualInstance::attach 0 5 7727
createVirtualInstance::attach::getChangeDescription 3 10 72
createVirtualInstance::attach::canInspectHooks 0 8 7