Skip to content

Add support for :handle_async hook in LiveComponents#4018

Merged
SteffenDE merged 3 commits intophoenixframework:mainfrom
kraleppa:support-handle-async-hook-in-live-components
Oct 17, 2025
Merged

Add support for :handle_async hook in LiveComponents#4018
SteffenDE merged 3 commits intophoenixframework:mainfrom
kraleppa:support-handle-async-hook-in-live-components

Conversation

@kraleppa
Copy link
Contributor

As discussed on Elixir Forum

Currently, attach_hook/4 in LiveComponents supports only :handle_event and :after_render stages. HexDocs

This PR adds support for :handle_async

@SteffenDE
Copy link
Collaborator

Let's also adjust the sentence here:

> Note: only `:after_render` and `:handle_event` hooks are currently supported in

@kraleppa kraleppa requested a review from SteffenDE October 17, 2025 12:37
@SteffenDE SteffenDE merged commit cc25e8c into phoenixframework:main Oct 17, 2025
7 checks passed
@SteffenDE
Copy link
Collaborator

Thank you, and also thank you for the reminder! 🙌🏻

SteffenDE pushed a commit that referenced this pull request Oct 21, 2025
* Add support for `:handle_async` hook in LiveComponents

* Add test for `:handle_async` hook

* Adjusted docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments