Skip to content

Commit

Permalink
fix[devtools]: fixed duplicated backend activation with multiple rend…
Browse files Browse the repository at this point in the history
…erers (#26807)

Summary:
## Summary
Initially reported in facebook/react#26797.
Was not able to reproduce the exact same problem, but found this case:

1. Open corresponding codepen from the issue in debug mode
2. Open components tab of the extension
3. Refresh the page

Received multiple errors:
- Warning in the Console tab: Invalid renderer id "2".
- Error in the Components tab: Uncaught Error: Cannot add node "3"
because a node with that id is already in the Store.

This problem has occurred after landing a fix in
facebook/react#26779. Looks like Chrome is
keeping the injected scripts (the backend in this case) and we start
backend twice.

DiffTrain build for commit facebook/react@67a05d0.

Reviewed By: javache

Differential Revision: D45815160

Pulled By: hoxyq

fbshipit-source-id: 99f3c45009b07a0fb89f0674ccfb24f170cdb29d
  • Loading branch information
hoxyq authored and facebook-github-bot committed May 16, 2023
1 parent 2a58b06 commit ada6c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/Libraries/Renderer/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
df12d7eac40c87bd5fdde0aa5a739bce9e7dce27
67a05d03e38b9837e27c9fe0a673557e63ff03c5

0 comments on commit ada6c51

Please sign in to comment.