View Source Bonfire.UI.Common.LiveHandlers (Bonfire v0.9.11-social-beta.6)

usage examples:

phx-submit="Bonfire.Posts:post" will be routed to Bonfire.Posts.LiveHandler.handle_event("post", ...

PubSub.broadcast(feed_id, {{Bonfire.Social.Feeds, :new_activity}, activity}) will be routed to Bonfire.Social.Feeds.LiveHandler.handle_info({:new_activity, activity}, ...

href="?Bonfire.Social.Feeds[after]=<%= e(@page_info, :end_cursor, nil) %>" will be routed to Bonfire.Social.Feeds.LiveHandler.handle_params(%{"after" => cursor_after} ...

Summary

Functions

assign_attrs(socket, attrs)

handle_event(action, attrs, socket, source_module \\ nil, fun \\ nil)

handle_info(blob, socket, source_module \\ nil, fun \\ nil)

handle_params(params, uri, socket, source_module \\ nil, fun \\ nil)

handle_progress(type, entry, socket, source_module, target_fn)

maybe_from_json(json)

mod_delegate(mod, fun, args, socket, no_delegation_fn \\ &no_live_handler/2)

sigil_p(route, extra)

(macro)