-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Description
Describe the bug
When a snippet renders an async value with ssr enabled, there's a warning about hydration mismatch. It still renders correctly however. Not sure if there's any consequence or just a false positive.
Reproduction
<script lang="ts">
const count = await 1;
</script>
{#snippet foo(count: number)}
{count}
{/snippet}
{@render foo(count)}https://stackblitz.com/edit/async-snippet-hydration-problem?file=src%2Froutes%2F%2Bpage.svelte
Logs
+layout.svelte:34 [svelte] hydration_mismatchHydration failed because the initial UI does not match what was rendered on the serverSystem Info
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels