Skip to content

Commit 1252692

Browse files
committed
fix(website): click on copy code
1 parent 149e17e commit 1252692

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/website/src/components/highlight/highlight.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export const Highlight = component$(
4545
codeSig.value = str.toString();
4646
});
4747

48-
useTask$(async () => {
48+
useTask$(async ({ track }) => {
49+
track(() => code);
4950
await addShiki$();
5051
});
5152

0 commit comments

Comments
 (0)