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

Function adoptClassInstance

code/third-party/public/app.js:7591–7599  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

7589 }
7590
7591 function adoptClassInstance(workInProgress, instance) {
7592 instance.updater = updater;
7593 workInProgress.stateNode = instance;
7594 // The instance needs access to the fiber so that it can schedule updates
7595 set(instance, workInProgress);
7596 {
7597 instance._reactInternalInstance = fakeInternalInstance;
7598 }
7599 }
7600
7601 function constructClassInstance(workInProgress, props) {
7602 var ctor = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70

Calls 1

setFunction · 0.70

Tested by

no test coverage detected