Passing an id to the live_react_component wrapper doesn't mean that the same ID will be applied to the element using the LiveReact Hook call, so Phoenix complains about the LiveReact Hook not having a DOM ID.
I guess both the phx-hook and the phx-update="ignore" need a DOM ID now. I will merge this PR and change the container id to "#{id}-container" so the id's are unique.
Live React Component Wrapper ID
Description
Passing an id to the
live_react_component
wrapper doesn't mean that the same ID will be applied to the element using the LiveReact Hook call, so Phoenix complains about the LiveReact Hook not having a DOM ID.Example
<%= live_react_component("Components.ShipmentWrapperComponent", %{}, id: "shipment-wrapper-component") %>
Solution
Add an
id
attr usingKeyword.get/3
.