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

Function adoptClassInstance

code/higher-order-components/public/app.js:8352–8360  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

8350 }
8351
8352 function adoptClassInstance(workInProgress, instance) {
8353 instance.updater = updater;
8354 workInProgress.stateNode = instance;
8355 // The instance needs access to the fiber so that it can schedule updates
8356 set(instance, workInProgress);
8357 {
8358 instance._reactInternalInstance = fakeInternalInstance;
8359 }
8360 }
8361
8362 function constructClassInstance(workInProgress, props) {
8363 var ctor = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70

Calls 1

setFunction · 0.70

Tested by

no test coverage detected