From 1daeb15377f6faae805779ec6cc4ddc43934e0c7 Mon Sep 17 00:00:00 2001 From: Dave Lucia Date: Fri, 18 Apr 2025 07:03:37 -0400 Subject: [PATCH] fix: clarify socket documentation --- lib/live_svelte.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/live_svelte.ex b/lib/live_svelte.ex index d824b0b..f21bd00 100644 --- a/lib/live_svelte.ex +++ b/lib/live_svelte.ex @@ -30,12 +30,12 @@ defmodule LiveSvelte do attr :ssr, :boolean, default: true, - doc: "Whether to render the component on the server", + doc: "Whether to render the component via NodeJS on the server", examples: [true, false] attr :socket, :map, default: nil, - doc: "LiveView socket, should be provided when rendering inside LiveView" + doc: "LiveView socket, only needed when ssr: true" attr :live_json_props, :map, default: %{},