Skip to content

Commit 5ddc0ca

Browse files
authored
Don't try to @render svelte components in FlexRender
Svelte Components should not be @render'd, only snippets get @render'd, per the docs Unlike Svelte 4, the Component in FlexRender will already be dynamically evaluated. This fixes examples/svelte/sorting for Svelte 5.
1 parent b5339c5 commit 5ddc0ca

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/svelte-table/src/FlexRender.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
{:else if isFunction(content)}
3636
{@const result = content(context as any)}
3737
{#if result instanceof RenderComponentConfig}
38-
{@render result.component(result.props)}
3938
{@const { component: Component, props } = result}
4039
<Component {...props} />
4140
{:else if result instanceof RenderSnippetConfig}

0 commit comments

Comments
 (0)