[DevTools] Revert Measure the Rectangle of Suspense boundaries as we reconcile#170
[DevTools] Revert Measure the Rectangle of Suspense boundaries as we reconcile#170everettbu wants to merge 1 commit into
Conversation
Greptile OverviewGreptile SummaryThis PR reverts DevTools backend logic that measured Suspense boundary rectangles during reconciliation (both at mount time and when consuming unchanged Suspense nodes). The net effect is that Within the codebase, this primarily affects the Suspense overlay/visualization plumbing in Confidence Score: 4/5
Important Files Changed
|
55b7b59 to
6942d48
Compare
There was a problem hiding this comment.
Additional Comments (1)
-
packages/react-devtools-shared/src/backend/fiber/renderer.js, line 3453-3510 (link)style:
measureUnchangedSuspenseNodesRecursivelyis now unused (its only call was removed on line 3552). Consider removing this dead code.
1 file reviewed, 1 comment
6942d48 to
7040d42
Compare
Additional Comments (1)
Suggestion: delete or update this comment to reflect the current behavior (i.e. rect measurement is not happening at mount time here). Prompt To Fix With AIThis is a comment left during a code review.
Path: packages/react-devtools-shared/src/backend/fiber/renderer.js
Line: 4133:4138
Comment:
**Dead/incorrect comment block**
After this revert, the block comment at `mountFiberRecursively` still says “Measure this Suspense node…”, but the measuring logic it describes was removed in this PR. This is misleading (and suggests `newSuspenseNode.rects` is set here when it no longer is), which makes future maintenance/error triage harder.
Suggestion: delete or update this comment to reflect the current behavior (i.e. rect measurement is not happening at mount time here).
How can I resolve this? If you propose a fix, please make it concise. |
|
This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated. |
Mirror of facebook/react#34956
Original author: meet-student
Close:
After investigation, the problem appeared in this PR #34090 .
Measure the Rectangle of Suspense boundaries as we reconcile
I think this change release should be rolled back. After confirming that there are no issues with the subsequent plan, it can be changed again to ensure that the impact on users is reduced
@sebmarkbage@eps1lon@hoxyq