MCPcopy Create free account
hub / github.com/microsoft/SandDance / findStrictRoot

Function findStrictRoot

docs/external/js/react-dom.development.js:11357–11370  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

11355
11356 {
11357 var findStrictRoot = function (fiber) {
11358 var maybeStrictRoot = null;
11359 var node = fiber;
11360
11361 while (node !== null) {
11362 if (node.mode & StrictMode) {
11363 maybeStrictRoot = node;
11364 }
11365
11366 node = node.return;
11367 }
11368
11369 return maybeStrictRoot;
11370 };
11371
11372 var setToSortedString = function (set) {
11373 var array = [];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected