Replies: 2 comments 3 replies
-
If it is important that the condition is not within the snippet so the snippet property can be {#snippet description()}
<!-- Note the `!` -->
<Description description={desc!} />
{/snippet}
<Template description={desc !== undefined ? description : undefined} /> |
Beta Was this translation helpful? Give feedback.
3 replies
-
For now I think that the best solution is to déclare thé snippet outside the component, and using a $derived. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
REPL with second example
Beta Was this translation helpful? Give feedback.
All reactions