-
-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Labels
Description
The +layout.svelte's children prop seems to be typed as Snippet?
I remember it being Snippet | undefined but seems to have changed.
If so, this is now possible:
- {@render children?.()}
+ {@render children()}This change will match the code with the docs:
<script lang="ts">
import type { LayoutProps } from './$types';
let { data, children }: LayoutProps = $props();
</script>
<main>
<!-- +page.svelte is `@render`ed here -->
{@render children()}
</main>