A conference talk proposal covering a pattern for building reusable, stateful widgets in Phoenix LiveView. The approach combines function components with LiveView hooks using attach_hook/4 to overcome limitations of LiveComponents (no mailbox/PubSub access) and embedded LiveViews (performance overhead). A real-world notification widget demonstrates how widgets can manage their own state, handle events, and subscribe to PubSub without coupling to parent LiveView implementations.

2m read timeFrom elixirconf.eu
Post cover image

Sort: