flowbite icon indicating copy to clipboard operation
flowbite copied to clipboard

Respect StreamElement.render async function

Open artinboghosian opened this issue 9 months ago • 0 comments

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.

artinboghosian avatar Feb 24 '25 21:02 artinboghosian