From 6fa73ee33f2bb67ace00824ef5406e41198c2e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Sun, 29 Jun 2025 19:11:16 +0200 Subject: [PATCH] Tests --- .../example/src/routes/effect-component-tests.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/example/src/routes/effect-component-tests.tsx b/packages/example/src/routes/effect-component-tests.tsx index d95daa1..5d6ad78 100644 --- a/packages/example/src/routes/effect-component-tests.tsx +++ b/packages/example/src/routes/effect-component-tests.tsx @@ -26,16 +26,13 @@ class TestService extends Effect.Service()("TestService", { const MyTestComponent = Effect.fn(function* MyTestComponent(props?: { readonly value?: string }) { const [state, setState] = React.useState("value") - const effectValue = yield* Effect.succeed(`state: ${ state }`) - yield* ReactHook.useEffect(() => Effect.andThen( - Effect.addFinalizer(() => Console.log("MyTestComponent umounted")), - Console.log("MyTestComponent mounted"), - ), []) + // yield* ReactHook.useMemo(() => Effect.andThen( + // Effect.addFinalizer(() => Console.log("MyTestComponent umounted")), + // Console.log("MyTestComponent mounted"), + // ), []) return <> - {effectValue} -