Adding a handle_info callback to LiveComponents

Just now implemented connected_component.ex from the demo and with the patches suggested by @mortenlund .

Looks like an excellent solution to me, did exactly what I needed it to and saved me several screens worth of boilerplate handlers.

Apart from wondering why this is not part of Phoenix itself maybe you could release it on Hex? Would be cleaner than a random ‘lib module’ in our codebase :slight_smile:

Thanks again

1 Like