Test
All checks were successful
Lint / lint (push) Successful in 14s

This commit is contained in:
Julien Valverdé
2025-06-26 04:29:11 +02:00
parent f327728b3a
commit 9ba36ebc04

View File

@@ -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 <>
<Text>{effectValue}</Text>