(persistance) persist user choices

Lazy load youtube video
This commit is contained in:
2020-07-11 23:04:23 +02:00
parent d9d8337297
commit d7f185fa6b
6 changed files with 84 additions and 40 deletions

View File

@@ -1,6 +1,7 @@
import { ref, computed, watch } from '@vue/composition-api'
import { StopwatchState } from '@/types/StopwatchState'
import { notify } from '@/utils/notification'
import { useInterval } from './useInterval'
const format = (num: number) => {
return num.toString().padStart(2, '0')
@@ -16,7 +17,7 @@ const formatSeconds = (seconds: number) => {
export const useTimer = () => {
const timeState = ref<StopwatchState>('stopped')
const seconds = ref(0)
const interval = ref(5)
const { interval } = useInterval()
const sessionSeconds = ref(interval.value * 60)
const isDev1Turn = ref(true)