I’d been skimming through Molecule’s code and wond...
# squarelibraries
r
I’d been skimming through Molecule’s code and wondered if the Recomposer should use
this
as parameter (as in,
this + clockContext
), otherwise it still uses the original
coroutineContext
https://github.com/cashapp/molecule/blob/dcfea3afe82d834643345c44b45522eee5b6c64a/[…]ule-runtime/src/commonMain/kotlin/app/cash/molecule/molecule.kt
t
Isn't the
with(this + clockContext)
creating a new
this
in the scope which is now set to
this + clockContext
. So coroutineContext is really
(this + clockContext).coroutineContext
indirectly or am I misunderstanding
r
oh, indeed 🤦 for whatever reason I thought
this + clockContext
returns a
CoroutineContext
and not a
CoroutineScope