---
title: "Discussion on \"Things I Learned using Phoenix LiveView in 2024\" | Hashnode"
description: "Discussion on \"Things I Learned using Phoenix LiveView in 2024\". Use handle_params/3 more often rather than mount/3 for assigning.\ndef mount(_params, _session, socket), do: {:ok, socket}\ndef handle_params(params, _uri, socket) do\n   {:noreply,\n        socket\n        |> assign_here_1(params)\n        |> assign_here_..."
url: "https://hashnode.com/posts/things-i-learned-using-phoenix-liveview-in-2024/65ce8f4b2abcadfc3f5fd362"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Things I Learned using Phoenix LiveView in 2024](https://paugramming.hashnode.dev/things-i-learned-using-phoenix-liveview-in-2024?utm_source=hashnode&utm_medium=feed)

Use handle\_params/3 more often rather than mount/3 for assigning. def mount(\_params, \_session, socket), do: {:ok, socket} def handle\_params(params, \_uri, socket) do {:noreply, socket |> assign\_here\_1(params) |> assign\_here\_...

Feb 15, 2024 · 2 min read · paugramming.hashnode.dev  
Read the article

-   [#phoenix-liveview](https://hashnode.com/tag/phoenix-liveview)
-   [#liveview](https://hashnode.com/tag/liveview)
-   [#elixir](https://hashnode.com/tag/elixir)
-   [#phoenix](https://hashnode.com/tag/phoenix)

## Written by

[Pau Riosa](https://hashnode.com/@pauriosa)

@pauriosa · Philippines

  
[View profile](https://hashnode.com/@pauriosa)

Empowering dreams, one line of code at a time

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
