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

Function prepareToHydrateHostInstance

code/third-party/public/app.js:11394–11405  ·  view source on GitHub ↗
(fiber, rootContainerInstance, hostContext)

Source from the content-addressed store, hash-verified

11392 }
11393
11394 function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
11395 var instance = fiber.stateNode;
11396 var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
11397 // TODO: Type this specific to this type of component.
11398 fiber.updateQueue = updatePayload;
11399 // If the update payload indicates that there is a change or if there
11400 // is a new ref we mark this as an update.
11401 if (updatePayload !== null) {
11402 return true;
11403 }
11404 return false;
11405 }
11406
11407 function prepareToHydrateHostTextInstance(fiber) {
11408 var textInstance = fiber.stateNode;

Callers 1

completeWorkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected