MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / setInterval

Method setInterval

src/Carousel.js:172–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 }
171
172 setInterval() {
173 // make sure not to have multiple intervals going...
174 this.clearInterval();
175 if (this.props.interval) {
176 this.cycleInterval = setInterval(() => {
177 this.props.next();
178 }, parseInt(this.props.interval, 10));
179 }
180 }
181
182 clearInterval() {
183 clearInterval(this.cycleInterval);

Callers 3

componentDidMountMethod · 0.95
componentDidUpdateMethod · 0.95
hoverEndMethod · 0.95

Calls 2

clearIntervalMethod · 0.95
nextMethod · 0.80

Tested by

no test coverage detected