File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
coreExtCatsEffect/src/main/scala/japgolly/scalajs/react/util Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ object EffectCatsEffect {
9999 f => () => fa.unsafeRunAsync(ea => f(ea.toTry)())(runtime())
100100
101101 override def dispatch [A ](fa : IO [A ]): Unit =
102- fa.unsafeRunAndForget()(runtime())
102+ fa.syncStep.unsafeRunSync().fold(_. unsafeRunAndForget()(runtime()), _ => ())
103103 }
104104
105105 private lazy val tryUnit : Try [Unit ] =
Original file line number Diff line number Diff line change 33### Bug fixes
44
55* Fix infinite loop in functional components with reuse + ` Reusability.never ` ([ #1027 ] ( https://github.com/japgolly/scalajs-react/issues/1027 ) )
6+ * When using ` cats.effect.IO ` as event handlers, it runs as synchronously as possible until it runs into an async step.
You can’t perform that action at this time.
0 commit comments