Is there a way to add an event listener to the cap...
# compose-web
n
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
@Oleksandr Karpovich [JB] ^^
🙏 1
o
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
👍🏻 1
🙏 1