It works in the browser but maybe that is by chance. If I run mix test I get
1) test disconnected and connected render (ExampleWeb.PageLiveTest)
test/example_web/live/page_live_test.exs:6
** (exit) exited in: Phoenix.LiveViewTest.live("/")
** (EXIT) an exception was raised:
** (ArgumentError) setting phx-update to "ignore" requires setting an ID on the container, got:
It is part of a component which I call with <%= live_component @socket, HeaderComponent, id: 1 %>
If I add an id="1000" after the phx-update="ignore" the test runs but the browser doesn’t show the page properly.
Google is not a big help here. It says that I should add phx-update="ignore" for Alpine.js stuff because otherwise LiveView and Alpine will fight each other but doesn’t mention an id for this scenario at all.