refactor(main): reduce age update duration
This commit is contained in:
parent
cabd9a8934
commit
3249c0f970
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
const interval = setInterval(() => {
|
const interval = setInterval(() => {
|
||||||
age = getAge() // first called after the delay
|
age = getAge() // first called after the delay
|
||||||
}, 50)
|
}, 100)
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
clearInterval(interval)
|
clearInterval(interval)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue