git.iko.soy/rowtype-yoga/purescript-yoga-react-om
on main help sign in
commit2bec120402e2b4e45a4ba5bd28d5129b54717ce2 authorMark <mark.eibes@gmail.com> dateSun 22 Feb 2026, 01:00 (7 months ago) parentf13a600
1 file changed+1−1
src/Yoga/React/Om.purs+1−1
src/Yoga/React/Om.purs+1−1
@@ -236,9 +236,9 @@ useAff
236236 -> Om { | ctx } () a
237237 -> OmRender ctx hooks (UseAff deps a hooks) (Maybe a)
238238useAff deps om = fromEffect Prelude.do
239+ ctx <- toEffect (useOm @ctx Prelude.pure)
239240 result /\ setResult <- toEffect (useState Nothing)
240241 toEffect $ useEffect deps Prelude.do
241− ctx :: { | ctx } <- unsafeCoerce (Ref.read ctxStash)
242242 setResult (const Nothing)
243243 fiber <- launchAff Prelude.do
244244 r <- try (Om.runOm ctx { exception: \e -> Aff.throwError e } om)