And to get things even more fuzzy when in one of my live page’s template I have a simple script <script>alert("lol")<script>
of course it works, but when I wrap it inside
<%= if connected?(@socket) do %>
<script>alert("lol")</script>
<%end%>
it stops working although it’s in the page and I can see it when inspect…
Again, the first and second rendering confusing me…Fundamentals of passing data from the Plug connection to the LiveView