#development #elixir #phoenix #reading-list

🔗 What happens when you visit a LiveView URL?
arrowsmithlabs.com

A classic job interview question is: "What happens when you type a URL into your browser's address bar and hit Enter?" In my last post, I explained how it works in a Phoenix app: Phoenix initializes a %Plug.Conn{} representing the incoming HTTP request, then passes it through a chain of functions returning a new %Plug.Conn{} with the response.

For a static page rendered by a controller, that's all. But if the page is a LiveView (arguably Phoenix's killer feature), we're only just beginning. In this post I'll continue the story and explain how pressing "Enter" in your address bar can make Phoenix open a websocket and mount a LiveView.

continue reading on arrowsmithlabs.com

⚠️ This post links to an external website. ⚠️