PhoenixKitWeb.Live.Modules.Entities.Hooks (phoenix_kit v1.5.1)
View SourceLiveView hooks for entity module pages.
Provides common setup and subscriptions for all entity-related LiveViews.
Summary
Functions
Subscribes to entity events and tracks user presence when the LiveView is connected.
Functions
Subscribes to entity events and tracks user presence when the LiveView is connected.
Add this to your entity LiveView with:
on_mount PhoenixKitWeb.Live.Modules.Entities.HooksThis automatically:
- Subscribes to entity creation, update, and deletion events
- Tracks authenticated user presence for dashboard statistics