i’m sorry, but can you please give an example for this on how this works.
Also if a parent liveview component
has the following
<.live_component module={PentoWeb.Components.BightnessLevel}
id="brightness_comp" brightness="35"/>
Local value = <%=@local_value %>
<button phx-click="sendValue" phx-target={@myself}>
Adjust brightness
</button>
I have the brightnesslevel child component that is interested on the brightness value. now in the sendValue method in the parent component i’m doing the following (changing the brightness value)
{:noreply,
socket
|> assign(:brightness, "85")}
this change does not get reflected on the child component, based on the explanation given by you, i assume this is because we are just assigning to the socket value only and not sending the change to the child component ? so in order for the change to take effect i need to add the following line as well