We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pomodoro runs a timer for 25 minutes to focus. Then it runs a timer for 5 minutes for relaxation.
When our working time (timeValues.workTime) elapses, timer begins again with a new duration (timeValues.funTime).
The text was updated successfully, but these errors were encountered:
Found that this is an issue with the react-timer-hook:
amrlabib/react-timer-hook#70 #
Sorry, something went wrong.
Fixed by adding a flipper boolean to the Timer component and a useEffect that causes the timer to rerender.
useEffect(() => { const time = new Date(); !timeValues.currWork ? time.setMinutes(time.getMinutes() + timeValues.workTime) : time.setMinutes(time.getMinutes() + timeValues.funTime); settimeValues({ ...timeValues, currWork: !timeValues.currWork }); restart(time); }, [timerElapsed]);
Successfully merging a pull request may close this issue.
Pomodoro runs a timer for 25 minutes to focus. Then it runs a timer for 5 minutes for relaxation.
When our working time (timeValues.workTime) elapses, timer begins again with a new duration (timeValues.funTime).
The text was updated successfully, but these errors were encountered: