MCPcopy Create free account
hub / github.com/microsoft/SandDance / hydrateInstance

Function hydrateInstance

docs/external/js/react-dom.development.js:7802–7815  ·  view source on GitHub ↗
(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle)

Source from the content-addressed store, hash-verified

7800 return getNextHydratable(parentInstance.firstChild);
7801 }
7802 function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
7803 precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events
7804 // get attached.
7805
7806 updateFiberProps(instance, props);
7807 var parentNamespace;
7808
7809 {
7810 var hostContextDev = hostContext;
7811 parentNamespace = hostContextDev.namespace;
7812 }
7813
7814 return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
7815 }
7816 function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
7817 precacheFiberNode(internalInstanceHandle, textInstance);
7818 return diffHydratedText(textInstance, text);

Callers 1

Calls 3

precacheFiberNodeFunction · 0.85
updateFiberPropsFunction · 0.85
diffHydratedPropertiesFunction · 0.85

Tested by

no test coverage detected