Hello! I stuck with the display flash at my LiveView template. And whatever I do, I don’t see the message on the page. I have two fields and handle_event. The content of the handle event isn’t important, but it’s important to understand that if I write an IO.input in it, I get a message in the console. But if I try to put_flash, nothing will happen
def handle_event("click", %{"content" => params}, socket) do
IO.inspect("test") # I see "test" in console
put_flash(socket, :error, "Error!") # I don't see flash on page
{:noreply, socket}
end
I also tried to write code like this:
def handle_event("click", %{"content" => params}, socket) do
IO.inspect("test") # I see "test" in console
# I don't see flash on page
{:noreply, socket |> put_flash(socket, :error, "Error!") }
end
and nothing happens.
Why don’t see flashes on the page? Could this be because tailwind and alphine.js were installed?






















