# \#flash

**URL:** https://forum.elixirforum.com/tag/flash/1269.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Toast - Server-rendered toast notifications for Phoenix LiveView](https://forum.elixirforum.com/t/toast-server-rendered-toast-notifications-for-phoenix-liveview/71737)

<div class="topic-metadata">

**Author:** [@Dmk](https://forum.elixirforum.com/u/Dmk)\
**Replies:** 3\
**Last updated:** [July 28, 2025, 7:06pm UTC](https://forum.elixirforum.com/t/toast-server-rendered-toast-notifications-for-phoenix-liveview/71737 "2025-07-28T19:06:09Z")

</div>

Toast is a notification system for Phoenix LiveView that works as a drop-in replacement for your existing flash messages while providing rich, interactive toast notifications. What is Toast? Toast provides three ways to…

---

## [PhoenixLiveViewFlashTimer - Auto-clear flash messages in LiveView](https://forum.elixirforum.com/t/phoenixliveviewflashtimer-auto-clear-flash-messages-in-liveview/71631)

<div class="topic-metadata">

**Author:** [@kurmetaubanov](https://forum.elixirforum.com/u/kurmetaubanov)\
**Replies:** 6\
**Last updated:** [July 9, 2025, 1:03pm UTC](https://forum.elixirforum.com/t/phoenixliveviewflashtimer-auto-clear-flash-messages-in-liveview/71631 "2025-07-09T13:03:35Z")

</div>

Hey everyone! :waving\_hand: I just published my first hex package that solves a common UX issue in Phoenix LiveView applications, and I’d love to share it with the community! The Problem Flash messages in Phoenix LiveV…

---

## [Bubble up Flash from child liveview](https://forum.elixirforum.com/t/bubble-up-flash-from-child-liveview/66430)

<div class="topic-metadata">

**Author:** [@roflbobl](https://forum.elixirforum.com/u/roflbobl)\
**Replies:** 5\
**Last updated:** [October 1, 2024, 6:18pm UTC](https://forum.elixirforum.com/t/bubble-up-flash-from-child-liveview/66430 "2024-10-01T18:18:52Z")

</div>

How do I from a sticky child liveview, bubble up my put\_flash to the containing liveview, so I can display flashes??

---

## [Support \`put\_flash/3\` with option for target pid](https://forum.elixirforum.com/t/support-put-flash-3-with-option-for-target-pid/62887)

<div class="topic-metadata">

**Author:** [@roflbobl](https://forum.elixirforum.com/u/roflbobl)\
**Replies:** 0\
**Last updated:** [April 13, 2024, 4:42pm UTC](https://forum.elixirforum.com/t/support-put-flash-3-with-option-for-target-pid/62887 "2024-04-13T16:42:09Z")

</div>

I recently created some live\_components where I want to notify the users with put\_flash/3 live I normally do in live\_views. I know that live\_components have their own flash assigns, but maybe add a way to target a proces…

---

## [Rendering of flash causes form to to be re-rendered... why?](https://forum.elixirforum.com/t/rendering-of-flash-causes-form-to-to-be-re-rendered-why/60333)

<div class="topic-metadata">

**Author:** [@ayrdim](https://forum.elixirforum.com/u/ayrdim)\
**Replies:** 2\
**Last updated:** [December 13, 2023, 7:17pm UTC](https://forum.elixirforum.com/t/rendering-of-flash-causes-form-to-to-be-re-rendered-why/60333 "2023-12-13T19:17:28Z")

</div>

Hey gang, I’ve got a simple form that I’m using to get some data from a textarea in liveview. I don’t have a validate form handler so the form data on the server always has the textarea data as an empty string (it was s…

---

## [Include Flash messages in child components](https://forum.elixirforum.com/t/include-flash-messages-in-child-components/57946)

<div class="topic-metadata">

**Author:** [@chrisdel101](https://forum.elixirforum.com/u/chrisdel101)\
**Replies:** 3\
**Last updated:** [September 19, 2023, 6:27pm UTC](https://forum.elixirforum.com/t/include-flash-messages-in-child-components/57946 "2023-09-19T18:27:02Z")

</div>

Using the default liveView setup via the generator, the flash messages are in live.html.heex. These appear to be included in all true LV’s via MyAppWeb module. But they are not in any of the child components. Not sure wh…

---

## [Testing flash message from LiveView](https://forum.elixirforum.com/t/testing-flash-message-from-liveview/44869)

<div class="topic-metadata">

**Author:** [@Euphorichuman](https://forum.elixirforum.com/u/Euphorichuman)\
**Replies:** 3\
**Last updated:** [August 21, 2023, 12:25pm UTC](https://forum.elixirforum.com/t/testing-flash-message-from-liveview/44869 "2023-08-21T12:25:49Z")

</div>

I’m trying to test a Phoenix phx-click event which, after being clicked, adds a flash message to the socket of a Live view: put\_flash (), and also the Live view updates some of its components (This if I can check it corr…

---

## [LiveView flash assigns not available in child LiveComponent](https://forum.elixirforum.com/t/liveview-flash-assigns-not-available-in-child-livecomponent/29558)

<div class="topic-metadata">

**Author:** [@trestrantham](https://forum.elixirforum.com/u/trestrantham)\
**Replies:** 9\
**Last updated:** [February 13, 2023, 1:44am UTC](https://forum.elixirforum.com/t/liveview-flash-assigns-not-available-in-child-livecomponent/29558 "2023-02-13T01:44:28Z")

</div>

I have a LiveView that renders a LiveComponent via an leex template: defmodule MyAppWeb.ThingEditView do use Phoenix.LiveView def mount(\_params, \_session, socket) do {:ok, socket} end def render(assigns) d…

---

## [LiveView, flashes and redirects](https://forum.elixirforum.com/t/liveview-flashes-and-redirects/51272)

<div class="topic-metadata">

**Author:** [@Rodeoclash](https://forum.elixirforum.com/u/Rodeoclash)\
**Replies:** 4\
**Last updated:** [October 24, 2022, 7:28am UTC](https://forum.elixirforum.com/t/liveview-flashes-and-redirects/51272 "2022-10-24T07:28:09Z")

</div>

How are others handling the following: Child components generating flashes (I’ve built a macro to easily send a flash to the root LiveView for display) Business logic which triggers a flash and redirect (i.e. updating …

---

## [Hide flash element if there is none?](https://forum.elixirforum.com/t/hide-flash-element-if-there-is-none/49267)

<div class="topic-metadata">

**Author:** [@alsaraha](https://forum.elixirforum.com/u/alsaraha)\
**Replies:** 4\
**Last updated:** [August 1, 2022, 7:14pm UTC](https://forum.elixirforum.com/t/hide-flash-element-if-there-is-none/49267 "2022-08-01T19:14:58Z")

</div>

The default template in the app.html.heex file is \<main class="container"\> \<p class="alert alert-info" role="alert"\>\<%= get\_flash(@conn, :info) %\>\</p\> \<p class="alert alert-danger" role="alert"\>\<%= get\_flash(@conn, …

---

## [Consideration: would it be worth it to expand lv:clear-flash to handle more than one key?](https://forum.elixirforum.com/t/consideration-would-it-be-worth-it-to-expand-lv-clear-flash-to-handle-more-than-one-key/43614)

<div class="topic-metadata">

**Author:** [@f0rest8](https://forum.elixirforum.com/u/f0rest8)\
**Replies:** 0\
**Last updated:** [November 4, 2021, 4:54am UTC](https://forum.elixirforum.com/t/consideration-would-it-be-worth-it-to-expand-lv-clear-flash-to-handle-more-than-one-key/43614 "2021-11-04T04:54:18Z")

</div>

I’m currently using two separate flash keys to display dynamic message content in a flash message (one key for part of the flash message and another key for the “body”). I noticed that it works doing it that way, but th…

---

## [Put\_flash html not working as desired](https://forum.elixirforum.com/t/put-flash-html-not-working-as-desired/18977)

<div class="topic-metadata">

**Author:** [@sen](https://forum.elixirforum.com/u/sen)\
**Replies:** 5\
**Last updated:** [March 17, 2021, 1:48pm UTC](https://forum.elixirforum.com/t/put-flash-html-not-working-as-desired/18977 "2021-03-17T13:48:43Z")

</div>

Hi all, My put\_flash message include html text. but it will direct to display same text in my page test01, no show the line breaks. How can i change my code? Thanks. |\> put\_flash(:info, "test01 \<br /\> test02 \<br /\> …

---

## [Flash always showing after upgrade from 1.2 to 1.4](https://forum.elixirforum.com/t/flash-always-showing-after-upgrade-from-1-2-to-1-4/27874)

<div class="topic-metadata">

**Author:** [@ZastrixArundell](https://forum.elixirforum.com/u/ZastrixArundell)\
**Replies:** 3\
**Last updated:** [January 12, 2020, 10:30am UTC](https://forum.elixirforum.com/t/flash-always-showing-after-upgrade-from-1-2-to-1-4/27874 "2020-01-12T10:30:56Z")

</div>

So I upgraded from the 1.2 version to 1.4 and I only have one issue which I couldn’t find a way to resolve. I had to upgrade it in the old version folder so it can be used as a branch (it would’ve been easier if it was a…
