MCPcopy Index your code
hub / github.com/flyfloor/react-component / handleDisplay

Function handleDisplay

component/Message.js:30–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30 handleDisplay(){
31 const {display} = this.state;
32 const {delay} = this.props;
33 this.setState({
34 display: !display
35 });
36
37 if (!display ) {
38 this._timer = setTimeout(() => this.setState({ display: false}), delay);
39 } else {
40 this.clearTimer()
41 }
42 },
43
44 clearTimer(){
45 if (this._timer) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…