roflbobl
Support `put_flash/3` with option for target pid
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 process/live_view to send the put_flash message.
Currently I use the method from this blogpost which works. It seems like a pretty standard thing to do, when making components.
Maybe there is lots of use cases I havn’t thought through.
My suggestion is something like this with an optional option:
socket |> put_flash(:info, "My message", target: live_view_pid)
I hope it makes sense
Popular in Proposals: Ideas
When building a component library, it is often useful to give users the ability to customize the underlying element or component to use. ...
New
The Problem
Phoenix 1.8 comes aggressively coupled with Daisy UI, a decision which many developers in the community have had mixed feelin...
New
@chrismccord @josevalim @steffend
Been using colocated JS for a while and I keep on stumbling on the same limitation: there is no way (a...
New
Hello, since the 1.8rc0 was out, DaisyUI was noted to have the benefit of light and dark mode.
From the elixir subreddit, it seem a few ...
New
Hi everyone! Recently I was thinking a lot about the way HEEX renders lists. People are generally surprised about huge payloads being sen...
New
I notice that most events have bindings (e.g. phx-keyup) but not the input event.
The input event is the preferred way to interact with ...
New
This could resolve to {[a: 1, b: 2]}. Was it ever considered to allow such syntax? Notice this: {:abc, a: 1, b: 2} and this: my_fun(:abc,...
New
This is likely a feature request unless we’re overlooking something, but it would be a nice improvement to the developer experience if th...
New
Hi Phoenix community!
First off, huge thanks for an amazing framework - Phoenix has been a joy to work with. I have a small UX suggestio...
New
Hi,
I’m trying to use phoenix.js in my Qt QML project which has it’s own buildin JavaScript engine. Problem is that (what I googled so f...
New
Other popular topics
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
New
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help.
Where are they similar?
Where do they differ the m...
New
Hello, I have map which I want to convert it to string like this:
the map:
%{last_name: "tavakkoli", name: "shahryar"}
the string I ne...
New
Hi everyone,
One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
lets say i have a sample like
a = 20; b = 10;
if (a > b) do
{:ok, "a"}
end
if (a < b) do
{:ok, b}
end
if (a == b) do
{:ok, "equa...
New
I have VueJS GUIs with the project generated using Webpack.
I have Elixir modules that will need to be used by the VueJS GUIs.
I forese...
New
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
New
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








