MCPcopy
hub / github.com/NervJS/nerv / forceUpdate

Method forceUpdate

packages/nerv/src/component.ts:97–102  ·  view source on GitHub ↗
(callback?: Function)

Source from the content-addressed store, hash-verified

95 }
96
97 forceUpdate (callback?: Function) {
98 if (isFunction(callback)) {
99 this._pendingCallbacks.push(callback)
100 }
101 updateComponent(this, true)
102 }
103
104 // tslint:disable-next-line
105 public render(nextProps?: P, nextState?, nextContext?): any {}

Callers 15

dom.spec.jsFile · 0.80
fragments.spec.jsFile · 0.80
keys.spec.jsFile · 0.80
render.spec.jsFile · 0.80
componentDidMountMethod · 0.80
portal.spec.jsFile · 0.80
constructorFunction · 0.80
refs.spec.jsFile · 0.80
constructorMethod · 0.80
constructorFunction · 0.80
lifecycle.spec.jsFile · 0.80
patch.spec.jsFile · 0.80

Calls 2

isFunctionFunction · 0.90
updateComponentFunction · 0.90

Tested by 5

componentDidMountMethod · 0.64
constructorFunction · 0.64
constructorMethod · 0.64
constructorFunction · 0.64
componentDidMountMethod · 0.64