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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="tj0" data-post="8" data-topic="54670">
<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/48db29/48.png" class="avatar"> tj0:</div>
<blockquote>
<p>After a bit of fiddling with the syntax, the following seems to work (thanks <a class="mention" href="/u/codeanpeace" rel="nofollow">@codeanpeace</a> , your suggestion was pretty close).</p>
</blockquote>
</aside>
<p>Ahh nice! Since you <code>import AppWeb.ChartView</code>, it makes sense that you can just use <code>&lt;%= show(assigns) %&gt;</code>.</p>
<aside class="quote no-group" data-username="tj0" data-post="10" data-topic="54670">
<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/48db29/48.png" class="avatar"> tj0:</div>
<blockquote>
<p>The main issue from my understanding is ensuring updates and change tracking works correctly.</p>
</blockquote>
</aside>
<p>Yup, that’s the primary issue. A secondary issue would be to place logic in the appropriate callbacks to optimize for efficient code execution.</p>
<aside class="quote no-group" data-username="aiwaiwa" data-post="9" data-topic="54670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/aiwaiwa/48/30155_2.png" class="avatar"> aiwaiwa:</div>
<blockquote>
<p>I’m just trying to formulate a rule of a thumb for such scenarios.</p>
</blockquote>
</aside>
<p>The way I currently think about it is that the <code>render</code> callback is invoked the most frequently so anything that doesn’t need to be in <code>render</code> should be moved out of <code>render</code>. So something that would be just fine in <code>mount</code> and <code>render</code> should be in <code>mount</code> as it’s invoked less often. For example, if <code>assigns.user</code> doesn’t change after <code>mount</code>, it would make sense to move the <code>assign_new</code> logic from <code>render</code> to <code>mount</code>. If it does change due to <code>push_patch</code>, then <code>handle_params</code> would be a good spot for it.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="282169" data-batch-url="/posts/batch_likers">
                        2
                      </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/phoenix-1-6-to-1-7-upgrade-with-optional-phoenix-view-removal/54670/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-282169" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="282169"
                     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 #11"></div>
  </section>
</div>
    <div class="postbit" id="282217" data-post-id="282217">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Thank you <a class="mention" href="/u/codeanpeace" rel="nofollow">@codeanpeace</a>!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="282217" 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/phoenix-1-6-to-1-7-upgrade-with-optional-phoenix-view-removal/54670/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-282217" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="282217"
                     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 #12"></div>
  </section>
</div>
    <div class="postbit" id="391438" data-post-id="391438">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Well I’m relieved to read that.</p>
<p>There are quite a few projects out there, I’d say, that still depend on react client side and the good old fashioned request response cycle.</p>
<p>Guess you can imagine the myriad lines of code in the view templates still being executed today.</p>
<p>Now the the sigil requirements being asked by phoenix 1.7+.</p>
<p>Not that our developers are so behind the times, just that getting the client side interface took over the project for a few years, with minimal phoenix code updates needed - mainly GenServer code to get concurrent access to client statuses assured.</p>
<p>Then coming back here, it’s all moved on with the darling new code, while the bread and butter still has to execute.</p>
<p>Just a view from those who read the books, all of them, elixir and erlang too, and feel that the phoenix creators took their eye off the ball somewhat during the the phoenix 1.4 book, while they headed off into the heady LiveView territory.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="391438" 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/phoenix-1-6-to-1-7-upgrade-with-optional-phoenix-view-removal/54670/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-391438" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="391438"
                     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>