Kris YotamAlpha Typix Build1671cae2 years agoHistory
10 lines · 292 B · TypeScript
RawDownload
import { setTimerId, timerDecrement } from "store/actions";import { store } from "store/store"; export const startTimer = () => {    const { dispatch } = store;    const timerId = setInterval(() => {        dispatch(timerDecrement());    }, 1000);    dispatch(setTimerId(timerId));};