(instance: InternalInstance)
| 37 | |
| 38 | // $FlowFixMe[missing-this-annot] webpack config needs to be updated to allow `this` type annotations |
| 39 | export function forceUpdate(instance: InternalInstance): void { |
| 40 | if (typeof instance.forceUpdate === 'function') { |
| 41 | instance.forceUpdate(); |
| 42 | } else if ( |
| 43 | instance.updater != null && |
| 44 | typeof instance.updater.enqueueForceUpdate === 'function' |
| 45 | ) { |
| 46 | instance.updater.enqueueForceUpdate(this, () => {}, 'forceUpdate'); |
| 47 | } |
| 48 | } |
no outgoing calls