Jakub spent 4 years as a UNICEF Innovation Officer in South East Asia, working where social impact meets tech. Around the same time, he fell in love with Elixir/BEAM and got blown away by its capabilities. Working on social challenges by day and coding Elixir by night, he found the perfect spot where these worlds could collide.
A software engineer and philosopher by education (yes, that’s a thing!), his journey zigzagged through PM roles at UNICEF, Microsoft’s R&D, Fintech startup, and finally landed him in Elixir development. He enjoys both dreaming up solutions and getting his hands dirty with code.
Building reusable, stateful widgets in Phoenix LiveView has been challenging. LiveComponents can’t access the process mailbox for PubSub integration, while embedded LiveViews create performance overhead and complex communication patterns. This talk presents a battle-tested alternative: combining function components with LiveView hooks to create truly independent widgets.
You’ll learn how to leverage attach_hook/4 to build widgets that manage their own state, handle events, subscribe to PubSub, and seamlessly integrate into any LiveView — without coupling to parent implementations. Through a real-world notification widget example, we’ll demonstrate how this pattern delivers the best of both worlds: LiveComponent-like behavior with direct mailbox access.
Key Takeaways:
Target Audience: