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
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help