Uploaded September 2026 | Updated December 2026, 8 hours ago
Hooked on Widgets: A Better Pattern for Reusable LiveView Components
This talk was recorded at ElixirConf EU 2026. Check our upcoming events at https://elixirconf.eu/
-- -- --
Building reusable, stateful widgets in Phoenix LiveView can be challenging. LiveComponents lack direct mailbox access, while embedded LiveViews often add performance overhead. This talk introduces a practical and battle-tested alternative: combining function components with LiveView hooks to create truly independent widgets.
You will learn how to use attach_hook/4 to build widgets that smoothly manage their own state, handle events, and subscribe to PubSub. Through a real-world notification widget example, we will see how this pattern provides the best of both worlds, giving you LiveComponent-like behavior with direct mailbox access.
-- -- --
Let's keep in touch!
Follow us on:
💥 Bluesky: @elixirconf.bsky.social / https://elixirconf.bsky.social
💥 X: @ElixirConfEU / https://x.com/ElixirConfEU
💥 LinkedIn: ElixirConf® / linkedin.com/company/elixirconf
Hooked on Widgets: A Better Pattern for Reusable LiveView Components
This talk was recorded at ElixirConf EU 2026. Check our upcoming events at https://elixirconf.eu/
-- -- --
Building reusable, stateful widgets in Phoenix LiveView can be challenging. LiveComponents lack direct mailbox access, while embedded LiveViews often add performance overhead. This talk introduces a practical and battle-tested alternative: combining function components with LiveView hooks to create truly independent widgets.
You will learn how to use attach_hook/4 to build widgets that smoothly manage their own state, handle events, and subscribe to PubSub. Through a real-world notification widget example, we will see how this pattern provides the best of both worlds, giving you LiveComponent-like behavior with direct mailbox access.
-- -- --
Let's keep in touch!
Follow us on:
💥 Bluesky: @elixirconf.bsky.social / https://elixirconf.bsky.social
💥 X: @ElixirConfEU / https://x.com/ElixirConfEU
💥 LinkedIn: ElixirConf® / linkedin.com/company/elixirconf










