Skip to content

Respect StreamElement.render async function#1040

Open
artinboghosian wants to merge 1 commit into
themesberg:mainfrom
artinboghosian:patch-3
Open

Respect StreamElement.render async function#1040
artinboghosian wants to merge 1 commit into
themesberg:mainfrom
artinboghosian:patch-3

Conversation

@artinboghosian

@artinboghosian artinboghosian commented Feb 24, 2025

Copy link
Copy Markdown
Contributor

The StreamElement.render property is set to an async function in Turbo (see https://github.com/hotwired/turbo/blob/main/src/elements/stream_element.js#L29 and https://github.com/hotwired/turbo/blob/main/src/elements/stream_element.js#L167). As a result we should respect the async nature of the function and only dispatch the after render event once we know rendering has completed, by awaiting render to finish.

The StreamElement.render property is set to an async function in Turbo (see https://github.com/hotwired/turbo/blob/main/src/elements/stream_element.js#L29). As a result we should respect the async nature of the function and only dispatch the after render event once we know rendering has completed, by awaiting render to finish.
@artinboghosian

Copy link
Copy Markdown
Contributor Author

Bumping

@artinboghosian

Copy link
Copy Markdown
Contributor Author

Bumping @zoltanszogyenyi

@artinboghosian

Copy link
Copy Markdown
Contributor Author

Bumping

2 similar comments
@artinboghosian

Copy link
Copy Markdown
Contributor Author

Bumping

@artinboghosian

Copy link
Copy Markdown
Contributor Author

Bumping

@artinboghosian

Copy link
Copy Markdown
Contributor Author

@zoltanszogyenyi bumping

@artinboghosian

Copy link
Copy Markdown
Contributor Author

Bumping

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.

1 participant