phoenixframework / phoenix_live_reload

Provides live-reload functionality for Phoenix
MIT License
315 stars 90 forks source link

load dependencies in application start callback #151

Closed SteffenDE closed 6 months ago

SteffenDE commented 6 months ago

When using the new PLUG_EDITOR integration, there was a problem where not all dependencies were available when the code reloader recompiled the code. This lead to missing dependencies when the live reloader joined the channel. This change ensures that all we initially load the deps when the application starts, so that later recompiles don't affect the deps list.

josevalim commented 6 months ago

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