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


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="pfun" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/pfun/120/28639_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  pfun
                    <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">
								<p>I did manage to confirm that you are correct – reloading the page does cause the new logger (or whatever changes) to be reflected. If you edit something in _web it triggers live reload, but also just refreshing the page (which as you mentioned would spawn a new liveview process for the page) also works.</p>
<p>Is this really the intended behaviour? I swear this has never been an issue before in other liveview apps. Maybe I’m mistaken.</p>
<p>So for the sake of my experiments I’m just heavy-handed adding:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">~r"lib/&lt;appname&gt;/.*?/.*"
</code></pre>
<p>to my live_reload config, kinda like <a class="mention" href="/u/kokolegorille" rel="nofollow">@kokolegorille</a> suggested originally. I hope this isn’t really the intended way to solve this situation though <img src="https://forum.elixirforum.com/images/emoji/apple/expressionless.png?v=15" title=":expressionless:" class="emoji" alt=":expressionless:" 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="269588" 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/code-reloading-in-lib-appname-no-longer-works-with-1-7-0-rc-0/52059/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-269588" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="269588"
                     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="269589" data-post-id="269589">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<blockquote>
<p>Is this really the intended behaviour?</p>
</blockquote>
<p>Well, I would imagine so. Reloading the browser simply works since it’s going through the set of plugs that handle this problem. However, I would imagine that the alternative of having your LV processes run the code reloader per message is probably worse. It would be possible to add a Plug like setup to your LV, but the overhead would be far from ideal. I personally don’t really deal with this problem specifically since I write the core code, have tests that run against that and <em>then</em> wire it up with LV.</p>
<p>Using <code>recompile</code> in an <code>iex</code> shell does give you more control when to recompile, but I can imagine that runs against the dev userflow for some people.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="269589" 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/code-reloading-in-lib-appname-no-longer-works-with-1-7-0-rc-0/52059/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-269589" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="269589"
                     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="269592" data-post-id="269592">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="pfun" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/pfun/120/28639_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  pfun
                    <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">
								<p>I guess I’m expecting a code change to nuke and restart any liveview processes that have outdated code. I’ll have a look and experiment with older liveview apps and see what happens there, but yea my dev workflow is definitely a “poke at it in the browser while making changes across the entire codebase”, usually. It’s just hobby stuff.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="269592" 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/code-reloading-in-lib-appname-no-longer-works-with-1-7-0-rc-0/52059/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-269592" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="269592"
                     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 #13"></div>
  </section>
</div>
    <div class="postbit" id="269594" data-post-id="269594">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<blockquote>
<p>I guess I’m expecting a code change to nuke and restart any liveview processes that have outdated code</p>
</blockquote>
<p>I suspect that you might have had a more aggressive configuration for <code>LiveReloader</code> in this instance. <code>LiveReloader</code> would have picked up your core changes and propagated them to cause the “nuke” on your LV process. LV definitely does take it to the next level, but it also adds a new set of problems to be solved.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="269594" 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/code-reloading-in-lib-appname-no-longer-works-with-1-7-0-rc-0/52059/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-269594" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="269594"
                     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 #14"></div>
  </section>
</div>
    <div class="postbit" id="269595" data-post-id="269595">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I confirm this behavior, I am very new at phoenix and would likely report the flaw poorly as I do not know elixir specific terminology.  If/when you make the github issue, please link it so that we can follow.</p>
<p>Thank you in advance.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="269595" 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/code-reloading-in-lib-appname-no-longer-works-with-1-7-0-rc-0/52059/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-269595" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="269595"
                     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 #15"></div>
  </section>
</div>
    <div class="postbit" id="269597" data-post-id="269597">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Just for good measure, I can confirm this as well!</p>
<p>Was surprised to not see behavior changes when editing a function in the <code>&lt;appname&gt;</code> portion of my project and remembered seeing this post!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="269597" 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/code-reloading-in-lib-appname-no-longer-works-with-1-7-0-rc-0/52059/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-269597" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="269597"
                     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 #16"></div>
  </section>
</div>
    <div class="postbit" id="269640" data-post-id="269640">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="pfun" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/pfun/120/28639_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  pfun
                    <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">
								<p>Alright so as <a class="mention" href="/u/beepbeepbopbop" rel="nofollow">@beepbeepbopbop</a> was suggesting, this is apparently just normal behaviour. I used Phoenix 1.6.15 to make a new app and did:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">mix phx.gen.live Things Thing things title:string count:integer
</code></pre>
<p>Added routes as instructions say, started server, made a ‘Thing’. Then I added a validation in <code>thing.ex</code>, e.g. add:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">    |&gt; validate_number(:count, less_than: 10)
</code></pre>
<p>Made a new Thing, and it let me make it with <code>count: 500</code>. Refresh the page and now the validation applies. Same with adding loggers. Nothing happens until you refresh the page (or <code>recompile()</code> when using iex). I definitely just want this to happen automatically, so I suppose I have to do the live_reload config ugliness I mentioned earlier.</p>
<p>I worked on an app early on with liveview (that unfortunately I can’t get to work at all anymore) and I really find it hard to believe I never noticed or encountered this. I did not make any changes to the live_reload config in that other app, totally vanilla as far as that’s concerned…</p>
<p>But, anyway, seems clear this is just expected and not a bug at all, folks. Thanks for all your input!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="269640" 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/code-reloading-in-lib-appname-no-longer-works-with-1-7-0-rc-0/52059/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-269640" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="269640"
                     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>