View Source LiveEvent.LiveView (live_event v0.1.0)
Add LiveEvent support to LiveViews.
Simply add
use LiveEvent.LiveView
to your LiveView module. See LiveEvent
for more information on how to emit and handle events.
The macro imports LiveEvent.emit/3
and hooks into the LiveView lifecycle to
add support for the LiveEvent.handle_event/4
callback.