(inst: any, callback)
| 216 | }, |
| 217 | // $FlowFixMe[missing-local-annot] |
| 218 | enqueueForceUpdate(inst: any, callback) { |
| 219 | const fiber = getInstance(inst); |
| 220 | const lane = requestUpdateLane(fiber); |
| 221 | |
| 222 | const update = createUpdate(lane); |
| 223 | update.tag = ForceUpdate; |
| 224 | |
| 225 | if (callback !== undefined && callback !== null) { |
| 226 | if (__DEV__) { |
| 227 | warnOnInvalidCallback(callback); |
| 228 | } |
| 229 | update.callback = callback; |
| 230 | } |
| 231 | |
| 232 | const root = enqueueUpdate(fiber, update, lane); |
| 233 | if (root !== null) { |
| 234 | startUpdateTimerByLane(lane, 'this.forceUpdate()', fiber); |
| 235 | scheduleUpdateOnFiber(root, fiber, lane); |
| 236 | entangleTransitions(root, fiber, lane); |
| 237 | } |
| 238 | |
| 239 | if (enableSchedulingProfiler) { |
| 240 | markForceUpdateScheduled(fiber, lane); |
| 241 | } |
| 242 | }, |
| 243 | }; |
| 244 | |
| 245 | function checkShouldComponentUpdate( |
nothing calls this directly
no test coverage detected