You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: refactored devtools browser extension scripts to improve port management and service worker lifetime (#27215)
Fixes#27119,
#27185.
Fixed:
- React DevTools now works as expected when user performs in-tab
navigation, previously it was just stuck.
https://github.com/facebook/react/assets/28902667/b11c5f84-7155-47a5-8b5a-7e90baca5347
- When user closes browser DevTools panel, we now do some cleanup to
disconnect ports and emit shutdown event for bridge. This should fix the
issue with registering duplicated fibers with the same id in Store.
Changed:
- We reconnect proxy port once in 25 seconds, in order to [keep service
worker
alive](https://developer.chrome.com/docs/extensions/whatsnew/#m110-sw-idle).
- Instead of unregistering dynamically injected content scripts, wen now
get list of already registered scripts and filter them out from scripts
that we want to inject again, see dynamicallyInjectContentScripts.js.
- Split `main.js` and `background.js` into multiple files.
Tested on Chromium and Firefox browsers.
DiffTrain build for commit 8fbd307.
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23986,7 +23986,7 @@ function createFiberRoot(
23986
23986
return root;
23987
23987
}
23988
23988
23989
-
var ReactVersion = "18.3.0-canary-f47956239-20230829";
23989
+
var ReactVersion = "18.3.0-canary-8fbd30794-20230829";
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8612,7 +8612,7 @@ var devToolsConfig$jscomp$inline_1027 = {
8612
8612
throwError("TestRenderer does not support findFiberByHostInstance()");
8613
8613
},
8614
8614
bundleType: 0,
8615
-
version: "18.3.0-canary-f47956239-20230829",
8615
+
version: "18.3.0-canary-8fbd30794-20230829",
8616
8616
rendererPackageName: "react-test-renderer"
8617
8617
};
8618
8618
varinternals$jscomp$inline_1226={
@@ -8643,7 +8643,7 @@ var internals$jscomp$inline_1226 = {
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9038,7 +9038,7 @@ var devToolsConfig$jscomp$inline_1069 = {
9038
9038
throwError("TestRenderer does not support findFiberByHostInstance()");
9039
9039
},
9040
9040
bundleType: 0,
9041
-
version: "18.3.0-canary-f47956239-20230829",
9041
+
version: "18.3.0-canary-8fbd30794-20230829",
9042
9042
rendererPackageName: "react-test-renderer"
9043
9043
};
9044
9044
varinternals$jscomp$inline_1267={
@@ -9069,7 +9069,7 @@ var internals$jscomp$inline_1267 = {
0 commit comments