MCPcopy Create free account
hub / github.com/braposo/react-text-loop / clearTimeouts

Method clearTimeouts

src/components/TextLoop.tsx:125–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 }
124
125 clearTimeouts(): void {
126 if (this.tickLoop != null) {
127 clearRequestTimeout(this.tickLoop);
128 }
129
130 if (this.tickDelay != null) {
131 clearRequestTimeout(this.tickDelay);
132 }
133 }
134
135 // Fade out animation
136 willLeave = (): { opacity: OpaqueConfig; translate: OpaqueConfig } => {

Callers 3

componentDidUpdateMethod · 0.95
componentWillUnmountMethod · 0.95
TextLoopClass · 0.95

Calls 1

clearRequestTimeoutFunction · 0.90

Tested by

no test coverage detected