Is there a way to add an event listener to the capturing phase with Compose HTML?
(I mean nicer than using
DisposableEffect()
because in this case I have to manage the addition/removal of the event listeners manually AND very carefully select the keys for the
DisposableEffect()
call to prevent capturing of stale values in the event listener lambdas.)
Thanks.
a
Artem Kobzar
06/17/2024, 4:28 PM
@Oleksandr Karpovich [JB] ^^
🙏 1
o
Oleksandr Karpovich [JB]
06/18/2024, 8:26 AM
Compose.Html doesn't provide such a possibility out of a box.
And looking at the current API state, I don't see a better way to achieve what you need without API changes.
DisposableEffect is a valid option though