MCPcopy Index your code
hub / github.com/caseywebdev/react-list / isRenderConsistentWithExternalStores

Function isRenderConsistentWithExternalStores

docs/index.js:14018–14051  ·  view source on GitHub ↗
(finishedWork)

Source from the content-addressed store, hash-verified

14016 );
14017}
14018function isRenderConsistentWithExternalStores(finishedWork) {
14019 for (var node = finishedWork; ; ) {
14020 var tag = node.tag;
14021 if (
14022 (0 === tag || 11 === tag || 15 === tag) &&
14023 node.flags & 16384 &&
14024 ((tag = node.updateQueue),
14025 null !== tag && ((tag = tag.stores), null !== tag))
14026 )
14027 for (var i = 0; i < tag.length; i++) {
14028 var check = tag[i],
14029 getSnapshot = check.getSnapshot;
14030 check = check.value;
14031 try {
14032 if (!objectIs(getSnapshot(), check)) return !1;
14033 } catch (error) {
14034 return !1;
14035 }
14036 }
14037 tag = node.child;
14038 if (node.subtreeFlags & 16384 && null !== tag)
14039 (tag.return = node), (node = tag);
14040 else {
14041 if (node === finishedWork) break;
14042 for (; null === node.sibling; ) {
14043 if (null === node.return || node.return === finishedWork) return !0;
14044 node = node.return;
14045 }
14046 node.sibling.return = node.return;
14047 node = node.sibling;
14048 }
14049 }
14050 return !0;
14051}
14052function markRootSuspended(
14053 root,
14054 suspendedLanes,

Callers 1

performWorkOnRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…