Stop mounting your LiveView twice (opens in new tab)
Stop mounting your LiveView twice 25 Jun 2026 by almirsarajcic Every LiveView mounts twice — once for the dead render, once when the socket connects. Everyone reaches for connected?(socket), but it doesn’t stop the double mount; it just hides it. What that quietly costs you, and how to actually mount once:
Read the original article