Skip to content

Commit 743b98a

Browse files
authored
fix: use computed for clicks initialization in createFixedClicks (#2073)
1 parent 842c0ad commit 743b98a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/composables/useClicks.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function createFixedClicks(
165165
): ClicksContext {
166166
const clicksStart = route?.meta.slide?.frontmatter.clicksStart ?? 0
167167
return createClicksContextBase(
168-
ref(Math.max(toValue(currentInit), clicksStart)),
168+
computed(() => Math.max(toValue(currentInit), clicksStart)),
169169
clicksStart,
170170
route?.meta?.clicks,
171171
)

0 commit comments

Comments
 (0)