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 f979920 commit 3f8248bCopy full SHA for 3f8248b
‎apps/website/src/components/code-snippet/code-snippet.tsx
@@ -28,10 +28,9 @@ export const CodeSnippet = component$<CodeSnippetProps>(({ name }) => {
28
const codeSnippetSig = useSignal<string>();
29
30
useTask$(async () => {
31
- const snippet = isDev
+ codeSnippetSig.value = isDev
32
? await codeSnippets[snippetPath]() // We need to call `await codeSnippets[snippetPath]()` in development as it is `eager:false`
33
: codeSnippets[snippetPath]; // We need to directly access the `codeSnippets[snippetPath]` expression in preview/production as it is `eager:true`
34
- codeSnippetSig.value = snippet;
35
});
36
37
return (
0 commit comments