Extend attach_hook/4 in LiveComponents

I don’t think there’s a technical reason blocking it. Adding support for handle_async might be as easy as adding it in line 98 here:

https://github.com/phoenixframework/phoenix_live_view/blob/ecb987460da52cd6f9301558ac22b52d68f44666/lib/phoenix_live_view/lifecycle.ex#L98

For update, more changes would be necessary, but if you want to look into it, a PR is welcome (I’d probably split it into two separate PRs though!).

1 Like