# `PhoenixKitPhotos.LiveUpdates`
[🔗](https://github.com/BeamLabEU/phoenix_kit_photos/blob/v0.3.0/lib/phoenix_kit_photos/live_updates.ex#L1)

Forwards storage lifecycle messages from the host LiveView to its timelines.

Add `on_mount {PhoenixKitPhotos.LiveUpdates, "timeline-component-id"}` to
each host LiveView, or pass a list of component IDs for multiple timelines.
Components cannot receive PubSub messages themselves. This hook consumes
storage lifecycle messages. Hosts with their own handlers can instead
forward `send_update(PhotoTimeline, id: id, refresh: true, file_uuids: ids)` themselves
(`file_uuids` is optional: with it, a timeline whose library the files are not in does nothing;
without it, it refreshes).

# `on_mount`

---

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