From 9ba36ebc044f7752d6e06aa8090d49422a48c95f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Thu, 26 Jun 2025 04:29:11 +0200 Subject: [PATCH] Test --- packages/example/src/routes/effect-component-tests.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/example/src/routes/effect-component-tests.tsx b/packages/example/src/routes/effect-component-tests.tsx index ec39ef1..cc87d70 100644 --- a/packages/example/src/routes/effect-component-tests.tsx +++ b/packages/example/src/routes/effect-component-tests.tsx @@ -26,10 +26,10 @@ const MyTestComponent = Effect.fn(function* MyTestComponent(props?: { readonly v const [state, setState] = React.useState("value") const effectValue = yield* Effect.succeed(`state: ${ state }`) - yield* ReactHook.useEffect(() => Effect.andThen( + yield* ReactHook.useOnce(() => Effect.andThen( Effect.addFinalizer(() => Console.log("MyTestComponent umounted")), Console.log("MyTestComponent mounted"), - ), []) + )) return <> {effectValue}