Dashboard LiveView

Let's learn how to hold data using sockets in LiveView.

The socket for the LiveView will have a bit of state that models the page we’re trying to build. For a dashboard, the state is the data we’re presenting. The dashboard we’re building will represent each major section of the page as a component. That means the socket of the LiveView itself will be pretty empty— instead, the socket of each component will hold the data that the component is responsible for rendering.

Get hands-on with 1200+ tech skills courses.