MCPcopy Create free account
hub / github.com/danielstocks/react-sortable / prepareToHydrateHostInstance

Function prepareToHydrateHostInstance

bundle.js:7646–7649  ·  view source on GitHub ↗
(fiber,rootContainerInstance,hostContext)

Source from the content-addressed store, hash-verified

7644// we'll have to schedule a deletion. To do that, this node needs a dummy
7645// fiber associated with it.
7646deleteHydratableInstance(hydrationParentFiber,nextHydratableInstance);}fiber.stateNode=nextInstance;hydrationParentFiber=fiber;nextHydratableInstance=getFirstHydratableChild(nextInstance);}function prepareToHydrateHostInstance(fiber,rootContainerInstance,hostContext){var instance=fiber.stateNode;var updatePayload=hydrateInstance(instance,fiber.type,fiber.memoizedProps,rootContainerInstance,hostContext,fiber);// TODO: Type this specific to this type of component.
7647fiber.updateQueue=updatePayload;// If the update payload indicates that there is a change or if there
7648// is a new ref we mark this as an update.
7649if(updatePayload!==null){return true;}return false;}function prepareToHydrateHostTextInstance(fiber){var textInstance=fiber.stateNode;var shouldUpdate=hydrateTextInstance(textInstance,fiber.memoizedProps,fiber);return shouldUpdate;}function popToNextHostParent(fiber){var parent=fiber['return'];while(parent!==null&&parent.tag!==HostComponent$10&&parent.tag!==HostRoot$10){parent=parent['return'];}hydrationParentFiber=parent;}function popHydrationState(fiber){if(fiber!==hydrationParentFiber){// We're deeper than the current hydration context, inside an inserted
7650// tree.
7651return false;}if(!isHydrating){// If we're not currently hydrating but we're in a hydration context, then
7652// we were an insertion and now need to pop up reenter hydration of our

Callers 1

completeWorkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected