# `PhoenixKitEntities.Web.Hooks`
[🔗](https://github.com/BeamLabEU/phoenix_kit_entities/blob/v0.4.6/lib/phoenix_kit_entities/web/hooks.ex#L1)

LiveView hooks for entity module pages.

Provides common setup and subscriptions for all entity-related LiveViews.

# `on_mount`

Subscribes to entity events and tracks user presence when the LiveView is connected.

Add this to your entity LiveView with:

    on_mount PhoenixKitEntities.Web.Hooks

This automatically:
- Subscribes to entity creation, update, and deletion events
- Tracks authenticated user presence for dashboard statistics

---

*Consult [api-reference.md](api-reference.md) for complete listing*
