Handling Third-Party Library Events with Effect.runPromise()

When using third party libraries, I sometimes end up executing some code inside event handlers(executing Effect.runPromise()). I don't know if it's considered "idiomatic", but I could not find another way. Any hint?
Was this page helpful?