PhoenixKitWeb.Live.NotificationsBell (phoenix_kit v1.7.102)

Copy Markdown View Source

Nested LiveView that renders the notifications bell in the global layout.

Embedded from layout_wrapper.ex via live_render/3 with sticky: true so it keeps its socket across page navigations and its own PubSub subscription stays live. It owns its handle_info callbacks for {:notification_created, _} / {:notification_seen, _} / {:notification_dismissed, _} / {:notifications_bulk_updated, _}, refreshing the badge count and dropdown contents on each event.

Not routable on its own — mount expects user_uuid in the nested session.

Summary

Functions

handle_event(binary, arg2, socket)

Callback implementation for Phoenix.LiveView.handle_event/3.

handle_info(arg1, socket)

Callback implementation for Phoenix.LiveView.handle_info/2.

mount(params, arg2, socket)

Callback implementation for Phoenix.LiveView.mount/3.

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.