Skip to content

Commit

Permalink
feat[react-devtools-extensions/logging]: initialize session id on the…
Browse files Browse the repository at this point in the history
… client for logging (#27517)

This code is executed once React DevTools panels are mounted, basically
when user opens browser's DevTools. Based on this fact, session in this
case is defined by browser's DevTools session, while they are open. A
session can involve debugging multiple React pages. `crypto.randomUUID`
is used to generate random user id.

Corresponding logger config changes -
[D50267871](https://www.internalfb.com/diff/D50267871).

DiffTrain build for commit 9abf6fa.
  • Loading branch information
hoxyq committed Oct 17, 2023
1 parent 84de884 commit 26e2a44
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24801,7 +24801,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-canary-67cc9ba87-20231016";
var ReactVersion = "18.3.0-canary-9abf6fa31-20231017";

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8968,7 +8968,7 @@ var devToolsConfig$jscomp$inline_1020 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-67cc9ba87-20231016",
version: "18.3.0-canary-9abf6fa31-20231017",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1213 = {
Expand Down Expand Up @@ -8999,7 +8999,7 @@ var internals$jscomp$inline_1213 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-67cc9ba87-20231016"
reconcilerVersion: "18.3.0-canary-9abf6fa31-20231017"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1214 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9394,7 +9394,7 @@ var devToolsConfig$jscomp$inline_1062 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-67cc9ba87-20231016",
version: "18.3.0-canary-9abf6fa31-20231017",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1254 = {
Expand Down Expand Up @@ -9425,7 +9425,7 @@ var internals$jscomp$inline_1254 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-67cc9ba87-20231016"
reconcilerVersion: "18.3.0-canary-9abf6fa31-20231017"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1255 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

var ReactVersion = "18.3.0-canary-67cc9ba87-20231016";
var ReactVersion = "18.3.0-canary-9abf6fa31-20231017";

// ATTENTION
// When adding new symbols to this file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,4 +580,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-67cc9ba87-20231016";
exports.version = "18.3.0-canary-9abf6fa31-20231017";
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-67cc9ba87-20231016";
exports.version = "18.3.0-canary-9abf6fa31-20231017";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
67cc9ba8789335b9da0838a446137c1be62adbcd
9abf6fa31cd7ff4c6e54de75950620e203c59ebf

0 comments on commit 26e2a44

Please sign in to comment.