<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="356548" data-post-id="356548">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Kallee" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Kallee
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Reminds me of this discussion where LV forms came up more than once, posting in hope that it adds some value here:)</p><aside class="onebox allowlistedgeneric" data-onebox-src="https://bsky.app/profile/bcardarella.bsky.social/post/3lfxgkm352k2q">
  <header class="source">
      <img src="https://web-cdn.bsky.app/static/favicon-32x32.png" class="site-icon" alt="" width="32" height="32">

      <a href="https://bsky.app/profile/bcardarella.bsky.social/post/3lfxgkm352k2q" target="_blank" rel="noopener nofollow ugc" title="06:32PM - 17 January 2025">Bluesky Social – 17 Jan 25</a>
  </header>

  <article class="onebox-body">
    <div class="aspect-image" style="--aspect-ratio:690/262;"><img src="https://cdn.bsky.app/img/feed_thumbnail/plain/did:plc:vqs244esjqsev4yfh2dmipn5/bafkreidgzdfhc2p3gtkjyxa7aa762nrecevvczwqwxjaydsuplgaa4fci4" class="thumbnail" alt="" width="690" height="262"></div>

<h3><a href="https://bsky.app/profile/bcardarella.bsky.social/post/3lfxgkm352k2q" target="_blank" rel="noopener nofollow ugc">Brian Cardarella (@bcardarella.bsky.social)</a></h3>

  <p>If I divorce myself from my own knowledge of OTP &amp; Elixir I have to agree with this sentiment about LiveView.

I also believe strongly that flattening the learning curve is 100% possible, but we (Elixir community) need to know what the pain points...</p>


  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="356548" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/liveview-performance-problems-morphdom-taking-up-to-1500ms-to-patch-updates/69408/52">Post #51</a>
	                </div>
	            </div>
              <div id="likers-container-356548" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="356548"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #51"></div>
  </section>
</div>
    <div class="postbit" id="356561" data-post-id="356561">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="joshamb" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/joshamb/120/35173_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  joshamb
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="tmbb" data-post="51" data-topic="69408">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/t/77aa72/48.png" class="avatar"> tmbb:</div>
<blockquote>
<p>The way the liveview guides suggest it should work is by using checkboxes disguised as buttons (and that’s how I implemented it).</p>
</blockquote>
</aside>
<p>A super minor note as I only found out about this a few weeks ago (and this is more for future readers), but this hasn’t been the advice in the docs since <code>0.20.4</code> <a href="https://hexdocs.pm/phoenix_live_view/0.20.4/Phoenix.Component.html#inputs_for/1" class="inline-onebox" rel="noopener nofollow ugc">Phoenix.Component — Phoenix LiveView v0.20.4</a></p>
<p>Instead, you can just use a button</p>
<pre data-code-wrap="elixir"><code class="lang-elixir"># NEW
  &lt;button
    type="button"
    name="mailing_list[emails_drop][]"
    value={ef.index}
    phx-click={JS.dispatch("change")}
  &gt;
    &lt;.icon name="hero-x-mark" class="w-6 h-6 relative top-2" /&gt;
  &lt;/button&gt;
</code></pre>
<p>vs</p>
<pre data-code-wrap="elixir"><code class="lang-elixir"># OLD
  &lt;label&gt;
    &lt;input type="checkbox" name="mailing_list[emails_drop][]" value={ef.index} class="hidden" /&gt;
    &lt;.icon name="hero-x-mark" class="w-6 h-6 relative top-2" /&gt;
  &lt;/label&gt;
</code></pre>
<hr>
<aside class="quote no-group" data-username="tmbb" data-post="51" data-topic="69408">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/t/77aa72/48.png" class="avatar"> tmbb:</div>
<blockquote>
<p>Actually, I don’t think the current LiveView way of working is compatible with large forms however much you optimize it.</p>
</blockquote>
</aside>
<p>Also despite this, I think it would still be interesting to see a mockup of your form in a repo, even it it’s just to showcase that having forms of that complexity is just not a good fit for LiveView <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="356561" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/liveview-performance-problems-morphdom-taking-up-to-1500ms-to-patch-updates/69408/53">Post #52</a>
	                </div>
	            </div>
              <div id="likers-container-356561" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="356561"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #52"></div>
  </section>
</div>
    <div class="postbit" id="356562" data-post-id="356562">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="tmbb" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  tmbb
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="tmbb" data-post="49" data-topic="69408">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/t/77aa72/48.png" class="avatar"> tmbb:</div>
<blockquote>
<p>An example of the form built with VueJS: <a href="https://codepen.io/Tiago-Barroso-the-builder/full/gbOarMY" rel="noopener nofollow ugc">https://codepen.io/Tiago-Barroso-the-builder/full/gbOarMY</a></p>
</blockquote>
</aside>
<p>You can see the JS (VueJS) version of the form in the link above.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="356562" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/liveview-performance-problems-morphdom-taking-up-to-1500ms-to-patch-updates/69408/54">Post #53</a>
	                </div>
	            </div>
              <div id="likers-container-356562" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="356562"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #53"></div>
  </section>
</div>
    <div class="postbit" id="356639" data-post-id="356639">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="steffend" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/steffend/120/20548_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  steffend
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Phoenix Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I want to look into this a little bit more when I find the time. I’d appreciate it a lot if you could publish the LiveView version somewhere, as that would save me a lot of time reproducing <img src="https://forum.elixirforum.com/images/emoji/apple/smiley.png?v=15" title=":smiley:" class="emoji" alt=":smiley:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="356639" data-batch-url="/posts/batch_likers">
                        8
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/liveview-performance-problems-morphdom-taking-up-to-1500ms-to-patch-updates/69408/55">Post #54</a>
	                </div>
	            </div>
              <div id="likers-container-356639" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="356639"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #54"></div>
  </section>
</div>
    <div class="postbit" id="356833" data-post-id="356833">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="tozz" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  tozz
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Coming back to this I had a look in Wireshark for my specific payloads in forms, and the compression of most messages were pretty darn insane, which makes sense in a form because almost all the data is identical.<br>
I knew compression helped a lot, but hadn’t looked at this specific type of data before, dumb of me I know, always measure!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="356833" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/liveview-performance-problems-morphdom-taking-up-to-1500ms-to-patch-updates/69408/56">Post #55</a>
	                </div>
	            </div>
              <div id="likers-container-356833" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="356833"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>