From 9b9f5fdf9976b7a81e70359c0777db1e5a9eb4b0 Mon Sep 17 00:00:00 2001 From: Wout De Puysseleir Date: Tue, 28 Feb 2023 00:57:47 -0800 Subject: [PATCH] Remove attr :rendered and add slot :inner_block --- lib/live_component.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/live_component.ex b/lib/live_component.ex index 67057c3..29e9a75 100644 --- a/lib/live_component.ex +++ b/lib/live_component.ex @@ -13,11 +13,13 @@ defmodule LiveSvelte do attr(:props, :map, default: %{}) attr(:name, :string) - attr(:rendered, :boolean, default: false) + + slot(:inner_block) @doc """ Renders a Svelte component on the server. """ + @impl true def render(assigns) do ~H"""