MCPcopy Index your code
hub / github.com/microsoft/SandDance / adoptClassInstance

Function adoptClassInstance

docs/external/js/react-dom.development.js:12955–12964  ·  view source on GitHub ↗
(workInProgress, instance)

Source from the content-addressed store, hash-verified

12953 }
12954
12955 function adoptClassInstance(workInProgress, instance) {
12956 instance.updater = classComponentUpdater;
12957 workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates
12958
12959 set(instance, workInProgress);
12960
12961 {
12962 instance._reactInternalInstance = fakeInternalInstance;
12963 }
12964 }
12965
12966 function constructClassInstance(workInProgress, ctor, props) {
12967 var isLegacyContextConsumer = false;

Callers 2

constructClassInstanceFunction · 0.85

Calls 1

setFunction · 0.70

Tested by

no test coverage detected