Skip to content

Commit 3b0eb93

Browse files
committed
docs(highlight): remove strategy as it is the default
1 parent 3471411 commit 3b0eb93

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,12 @@ export const Highlight = component$(
7272
});
7373

7474
// eslint-disable-next-line qwik/no-use-visible-task
75-
useVisibleTask$(
76-
async ({ track }) => {
77-
track(() => code);
78-
if (isDev) {
79-
await addShiki$();
80-
}
81-
},
82-
{ strategy: 'intersection-observer' },
83-
);
75+
useVisibleTask$(async ({ track }) => {
76+
track(() => code);
77+
if (isDev) {
78+
await addShiki$();
79+
}
80+
});
8481

8582
return (
8683
<div class="code-example relative max-h-[31.25rem] rounded-base">

0 commit comments

Comments
 (0)