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

Function popHydrationState

docs/index.js:6115–6159  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

6113 }
6114}
6115function popHydrationState(fiber) {
6116 if (fiber !== hydrationParentFiber) return !1;
6117 if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1;
6118 var shouldClear = !1,
6119 JSCompiler_temp;
6120 if ((JSCompiler_temp = 3 !== fiber.tag && 27 !== fiber.tag)) {
6121 if ((JSCompiler_temp = 5 === fiber.tag))
6122 (JSCompiler_temp = fiber.type),
6123 (JSCompiler_temp =
6124 !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
6125 shouldSetTextContent(fiber.type, fiber.memoizedProps));
6126 JSCompiler_temp = !JSCompiler_temp;
6127 }
6128 JSCompiler_temp && (shouldClear = !0);
6129 shouldClear && nextHydratableInstance && throwOnHydrationMismatch(fiber);
6130 popToNextHostParent(fiber);
6131 if (13 === fiber.tag) {
6132 fiber = fiber.memoizedState;
6133 fiber = null !== fiber ? fiber.dehydrated : null;
6134 if (!fiber) throw Error(formatProdErrorMessage(317));
6135 a: {
6136 fiber = fiber.nextSibling;
6137 for (shouldClear = 0; fiber; ) {
6138 if (8 === fiber.nodeType)
6139 if (((JSCompiler_temp = fiber.data), "/$" === JSCompiler_temp)) {
6140 if (0 === shouldClear) {
6141 nextHydratableInstance = getNextHydratable(fiber.nextSibling);
6142 break a;
6143 }
6144 shouldClear--;
6145 } else
6146 ("$" !== JSCompiler_temp &&
6147 "$!" !== JSCompiler_temp &&
6148 "$?" !== JSCompiler_temp) ||
6149 shouldClear++;
6150 fiber = fiber.nextSibling;
6151 }
6152 nextHydratableInstance = null;
6153 }
6154 } else
6155 nextHydratableInstance = hydrationParentFiber
6156 ? getNextHydratable(fiber.stateNode.nextSibling)
6157 : null;
6158 return !0;
6159}
6160function resetHydrationState() {
6161 nextHydratableInstance = hydrationParentFiber = null;
6162 isHydrating = !1;

Callers 1

completeWorkFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…