-
Notifications
You must be signed in to change notification settings - Fork 47.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DevTools] Unmount by walking previous nodes no longer in the new tree (
#30644) This no longer uses the handleCommitFiberUnmount hook to track unmounts. Instead, we can just unmount the DevToolsInstances that we didn't reuse. This doesn't account for cleaning up instances that were unnecessarily created when they weren't in the tree. I have a separate follow up for that. This also removes the queuing of untracking. This was added in #21523 but I don't believe it has been needed for a while because the mentioned flushPendingErrorsAndWarningsAfterDelay hasn't called untrackFiberID for a while so the race condition doesn't exist. It's hard to tell though because from the issues there weren't really any repros submitted.
- Loading branch information
1 parent
8d74e8c
commit 68dbd84
Showing
1 changed file
with
51 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters