Adding a handle_info callback to LiveComponents

To put those costs in perspective, an extra process isn’t expensive in elixir, and the library is a thin wrapper around Phoenix.LiveComponent, which you would only use if the new semantics prove valuable for you.

The original problem is in the first paragraph of the post if that helps :slightly_smiling_face:

I implemented the example app using both approaches in case you’d like to compare: Connected vs. Disconnected (vanilla LiveView). If it’s not worth the cost to you, totally get that, I shared in case anyone else was in search of better abstractions/patterns around LiveView.

1 Like