We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6af5512 commit 896723fCopy full SHA for 896723f
app/components/Package/Likes.vue
@@ -14,6 +14,13 @@ const showLikeFloat = shallowRef(false)
14
const likeFloatKey = shallowRef(0)
15
let likeFloatTimer: ReturnType<typeof setTimeout> | null = null
16
17
+onUnmounted(() => {
18
+ if (likeFloatTimer !== null) {
19
+ clearTimeout(likeFloatTimer)
20
+ likeFloatTimer = null
21
+ }
22
+})
23
+
24
const heartAnimStyle = computed(() => {
25
if (likeAnimKey.value === 0 || prefersReducedMotion.value) return {}
26
return {
0 commit comments