phoenixframework / phoenix_live_view

Rich, real-time user experiences with server-rendered HTML
https://hex.pm/packages/phoenix_live_view
MIT License
6k stars 906 forks source link

Support custom reloader in Phoenix.LiveView.Channel #3247

Closed wojtekmach closed 2 months ago

wojtekmach commented 2 months ago

In Phoenix Playground I'm using a custom code reloader and I'd like to be able to use when doing state-preserving reloads.

(I'm using a custom code reloader because the stock one, Phoenix.CodeReloader, needs to be running in a regular Mix project.)

I believe this is pretty niche feature so I'm not sure if it's worth documenting and if so where exactly.

I went ahead and rewrote the integration test and made it self-contained (I defined the minimal endpoint inline) since I believe that's easier to follow.

josevalim commented 2 months ago

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart: