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

Method setNeedsDisplay

packages/react-devtools-timeline/src/view-base/View.js:90–96  ·  view source on GitHub ↗

* Invalidates view's contents. * * Downward propagating; once called, all subviews of this view should also * be invalidated.

()

Source from the content-addressed store, hash-verified

88 * be invalidated.
89 */
90 setNeedsDisplay() {
91 this._needsDisplay = true;
92 if (this.superview) {
93 this.superview._setSubviewsNeedDisplay();
94 }
95 this.subviews.forEach(subview => subview.setNeedsDisplay());
96 }
97
98 /**
99 * Informs superview that it has subviews that need to be drawn.

Callers 15

setFrameMethod · 0.95
setVisibleAreaMethod · 0.95
setCanvasMethod · 0.80
setScrollStateMethod · 0.80
_setScrollStateMethod · 0.80
_setInteractionStateMethod · 0.80
_handleClickMethod · 0.80
_handleDoubleClickMethod · 0.80
_handleMouseMoveMethod · 0.80
setContentHeightMethod · 0.80

Calls 2

forEachMethod · 0.65

Tested by

no test coverage detected