Packages

A library to unify and simplify sending messages between components and views in the server for Phoenix LiveView.

Current section

Files

Jump to
live_view_events lib live_view_events.ex
Raw

lib/live_view_events.ex

defmodule LiveViewEvents do
@moduledoc """
Add `use LiveViewEvents` to the module you want to use any
of the features of `LiveViewEvents` in.
For more info about sending and receiving events, see `LiveViewEvents.Notify`.
"""
defmacro __using__(_opts) do
quote do
import LiveViewEvents.Notify
end
end
end