Phoenix.LiveController - controller-style abstraction for building multi-action live views on top of Phoenix.LiveView
Phoenix.LiveController comes in to organize live view code that covers multiple live actions in a fashion similar to how Phoenix controllers organize multiple HTTP actions. It provides a pragmatic convention that still keeps pieces of a stateful picture visible by enforcing clear function annotations.
Learn more about the library & see examples in documentation on HexDocs and get the code from repo on GitHub.
Coming soon: blog post that’ll explain how the library came to life and that’ll guide through converting regular HTTP controllers to live controllers.
Read next Understanding and fixing recompilation in Elixir projects