Hello, I try to update live_view from version 0.18 to 0.19, but unfortunately I discovered the fact that every place where I use “phx_hook” with underscore instead hyphen “phx-hook” the hooks not working. Why? It’s bug?
I use it for example in components where I store it in map as module variable.
like this
@component_options %{phx_hook: "ExampleHook",
style: "display: block;"
}
defp component_opts, do: @component_options
def my_div(assigns) do
"""
<div {component_opts()}>test</div>
"""
In version 0.18 it works correctly.