Documentation states:
Note: only
:after_render
hooks are currently supported in LiveComponents.
But the code below doesn’t output anything after the component is rendered. What am I doing wrong?
def mount(_params, _session, socket) do
socket =
attach_hook(socket, :after_render_hook, :after_render, fn
evt, params, socket ->
dbg(evt)
dbg(params)
socket
end)
{:ok, socket}
end