We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track

The documentation for
put_flash/3
in the Phoenix LiveView docs states that the@flash
assign is only copied to the parent LiveView if the component callspush_navigate/2
orpush_patch/2
.So if we want to set a flash message without navigation, we can use message passing to send a flash message which the parent LiveView will set on behalf of the component.
continue reading on andrewtimberlake.com
⚠️ This post links to an external website. ⚠️
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.