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

Function prepareToHydrateHostInstance

code/composition/public/app.js:12299–12310  ·  view source on GitHub ↗
(fiber, rootContainerInstance, hostContext)

Source from the content-addressed store, hash-verified

12297 }
12298
12299 function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
12300 var instance = fiber.stateNode;
12301 var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
12302 // TODO: Type this specific to this type of component.
12303 fiber.updateQueue = updatePayload;
12304 // If the update payload indicates that there is a change or if there
12305 // is a new ref we mark this as an update.
12306 if (updatePayload !== null) {
12307 return true;
12308 }
12309 return false;
12310 }
12311
12312 function prepareToHydrateHostTextInstance(fiber) {
12313 var textInstance = fiber.stateNode;

Callers 1

completeWorkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected