1
0

fix: add interval to uses of useNow so that it uses less resources

This commit is contained in:
kolaente
2023-03-16 19:14:58 +01:00
committed by Dominik Pschenitschni
parent e369473dd0
commit b77c7c2f45
3 changed files with 9 additions and 3 deletions

View File

@ -157,7 +157,9 @@ function openTask(e: {
const weekDayFromDate = useWeekDayFromDate()
const today = useNow()
const today = useNow({
interval: 6 * 60 * 60 * 1000, // Every 6 hours
})
const dateIsToday = computed(() => (date: Date) => {
return (
date.getDate() === today.value.getDate() &&