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} -