LiveDebugger.Flash (LiveDebugger v0.1.6)
View SourceFunctionalities to make flash messages work inside LiveComponents See: https://sevenseacat.net/posts/2023/flash-messages-in-phoenix-liveview-components/
Summary
Functions
Attaches hook to handle flash messages
Extended Phoenix.LiveView.put_flash/3 which works inside nested LiveViews/LiveComponents. If used in nested LiveView use root LiveView's pid.
Functions
Attaches hook to handle flash messages
@spec push_flash( socket :: Phoenix.LiveView.Socket.t(), message :: String.t() ) :: Phoenix.LiveView.Socket.t()
Extended Phoenix.LiveView.put_flash/3 which works inside nested LiveViews/LiveComponents. If used in nested LiveView use root LiveView's pid.
@spec push_flash( pid :: pid(), socket :: Phoenix.LiveView.Socket.t(), message :: String.t() ) :: Phoenix.LiveView.Socket.t()