MCPcopy
hub / github.com/transloadit/uppy / timerTick

Method timerTick

packages/@uppy/screen-capture/src/StopWatch.tsx:70–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 timerTick() {
71 this.timer = setTimeout(() => {
72 this.setState((state: $TSFixMe) => ({
73 elapsedTime: state.elapsedTime + 1,
74 }))
75 this.timerTick()
76 }, 1000)
77 }
78
79 render() {
80 const { recording, i18n } = { ...this.props } as $TSFixMe

Callers 1

startTimerMethod · 0.95

Calls 1

setStateMethod · 0.65

Tested by

no test coverage detected