mirror of https://github.com/sveltejs/svelte
fix: handle falsy dynamic components in SSR (#17542)
* fix: handle falsy dynamic components in SSR Closes #17408 Adds a dynamic check for the component in the SSR. Changes: - Modified server-side component renderer to use b.maybe_call for dynamic components - Added SSR test case for falsy component values * fix types --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/17546/head
parent
c3fcc15cfa
commit
efcb7353bb
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: handle false dynamic components in SSR
|
||||
@ -0,0 +1 @@
|
||||
<h1>Test</h1>
|
||||
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
let Component = $state();
|
||||
</script>
|
||||
|
||||
<h1>Test</h1>
|
||||
<Component />
|
||||
Loading…
Reference in new issue