MCPcopy Create free account
hub / github.com/reactjs/react-rails / hydrateInstance

Function hydrateInstance

lib/assets/react-source/development/react.js:11374–11387  ·  view source on GitHub ↗
(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle)

Source from the content-addressed store, hash-verified

11372 return getNextHydratable(parentInstance.firstChild);
11373 }
11374 function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
11375 precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events
11376 // get attached.
11377
11378 updateFiberProps(instance, props);
11379 var parentNamespace;
11380
11381 {
11382 var hostContextDev = hostContext;
11383 parentNamespace = hostContextDev.namespace;
11384 }
11385
11386 return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
11387 }
11388 function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
11389 precacheFiberNode(internalInstanceHandle, textInstance);
11390 return diffHydratedText(textInstance, text);

Callers 1

Calls 3

precacheFiberNodeFunction · 0.85
updateFiberPropsFunction · 0.85
diffHydratedPropertiesFunction · 0.85

Tested by

no test coverage detected