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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>When you don’t need that data anymore. So you’re either happy to fetch it again or you don’t need it because your pre/appending to the list. See below for the append case.</p>
<aside class="onebox githubblob" data-onebox-src="https://github.com/chrismccord/phoenix_live_view_example/blob/74167e3617a09dc30fccdb88cba52d1861b1199f/lib/demo_web/live/user_live/index_auto_scroll.ex">
  <header class="source">

      <a href="https://github.com/chrismccord/phoenix_live_view_example/blob/74167e3617a09dc30fccdb88cba52d1861b1199f/lib/demo_web/live/user_live/index_auto_scroll.ex" target="_blank" rel="noopener nofollow ugc">github.com/chrismccord/phoenix_live_view_example</a>
  </header>

  <article class="onebox-body">
    <h4><a href="https://github.com/chrismccord/phoenix_live_view_example/blob/74167e3617a09dc30fccdb88cba52d1861b1199f/lib/demo_web/live/user_live/index_auto_scroll.ex" target="_blank" rel="noopener nofollow ugc">lib/demo_web/live/user_live/index_auto_scroll.ex</a></h4>

<div class="git-blob-info">
  <a href="https://github.com/chrismccord/phoenix_live_view_example/blob/74167e3617a09dc30fccdb88cba52d1861b1199f/lib/demo_web/live/user_live/index_auto_scroll.ex" rel="noopener nofollow ugc"><code>74167e361</code></a>
</div>


      <pre><code class="lang-ex">defmodule DemoWeb.UserLive.Row do
  use Phoenix.LiveComponent

  defmodule Email do
    use Phoenix.LiveComponent

    def mount(socket) do
      {:ok, assign(socket, count: 0)}
    end

    def render(assigns) do
      ~L"""
      &lt;span id="&lt;%= @id %&gt;" phx-click="click" phx-target="#&lt;%= @id %&gt;" phx-hook="Test"&gt;
        Email: &lt;%= @email %&gt; &lt;%= @count %&gt;
      &lt;/span&gt;
      """
    end

    def handle_event("click", _, socket) do
      {:noreply, update(socket, :count, &amp;(&amp;1 + 1))}
</code></pre>



  This file has been truncated. <a href="https://github.com/chrismccord/phoenix_live_view_example/blob/74167e3617a09dc30fccdb88cba52d1861b1199f/lib/demo_web/live/user_live/index_auto_scroll.ex" target="_blank" rel="noopener nofollow ugc">show original</a>

  </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="248286" 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/how-to-track-the-variable-is-being-properly-changed-in-liveview/47142/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-248286" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="248286"
                     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>