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

Function prepareToHydrateHostInstance

code/communication/public/app.js:12196–12207  ·  view source on GitHub ↗
(fiber, rootContainerInstance, hostContext)

Source from the content-addressed store, hash-verified

12194 }
12195
12196 function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
12197 var instance = fiber.stateNode;
12198 var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
12199 // TODO: Type this specific to this type of component.
12200 fiber.updateQueue = updatePayload;
12201 // If the update payload indicates that there is a change or if there
12202 // is a new ref we mark this as an update.
12203 if (updatePayload !== null) {
12204 return true;
12205 }
12206 return false;
12207 }
12208
12209 function prepareToHydrateHostTextInstance(fiber) {
12210 var textInstance = fiber.stateNode;

Callers 1

completeWorkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected