MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / prepareToHydrateHostInstance

Function prepareToHydrateHostInstance

code/styling/public/app.js:12161–12172  ·  view source on GitHub ↗
(fiber, rootContainerInstance, hostContext)

Source from the content-addressed store, hash-verified

12159 }
12160
12161 function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
12162 var instance = fiber.stateNode;
12163 var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
12164 // TODO: Type this specific to this type of component.
12165 fiber.updateQueue = updatePayload;
12166 // If the update payload indicates that there is a change or if there
12167 // is a new ref we mark this as an update.
12168 if (updatePayload !== null) {
12169 return true;
12170 }
12171 return false;
12172 }
12173
12174 function prepareToHydrateHostTextInstance(fiber) {
12175 var textInstance = fiber.stateNode;

Callers 1

completeWorkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected