dillon1000/react

Commit

DevTools should not crawl unmounted subtrees when profiling starts (#23162)

Previously we crawled all subtrees, even not-yet-mounted ones, to initialize context values. This was not only unecessary, but it also caused an error to be thrown. This commit adds a test and fixes that behavior.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-devtools-shared/src/__tests__/profilerStore-test.js ModifiedM packages/react-devtools-shared/src/backend/renderer.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…