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 3471411 commit 3b0eb93Copy full SHA for 3b0eb93
apps/website/src/components/highlight/highlight.tsx
@@ -72,15 +72,12 @@ export const Highlight = component$(
72
});
73
74
// 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
- );
+ useVisibleTask$(async ({ track }) => {
+ track(() => code);
+ if (isDev) {
+ await addShiki$();
+ }
+ });
84
85
return (
86
<div class="code-example relative max-h-[31.25rem] rounded-base">
0 commit comments