MCPcopy
hub / github.com/facebook/react / enqueueForceUpdate

Function enqueueForceUpdate

packages/react-server/src/ReactFizzClassComponent.js:136–147  ·  view source on GitHub ↗
(inst: any, callback)

Source from the content-addressed store, hash-verified

134 },
135 // $FlowFixMe[missing-local-annot]
136 enqueueForceUpdate(inst: any, callback) {
137 const internals: InternalInstance = getInstance(inst);
138 if (internals.queue === null) {
139 warnNoop(inst, 'forceUpdate');
140 } else {
141 if (__DEV__) {
142 if (callback !== undefined && callback !== null) {
143 warnOnInvalidCallback(callback);
144 }
145 }
146 }
147 },
148};
149
150function applyDerivedStateFromProps(

Callers

nothing calls this directly

Calls 3

getInstanceFunction · 0.85
warnNoopFunction · 0.70
warnOnInvalidCallbackFunction · 0.70

Tested by

no test coverage detected