Work
All checks were successful
Lint / lint (push) Successful in 12s

This commit is contained in:
Julien Valverdé
2025-07-14 06:52:38 +02:00
parent 0bb2a2fa01
commit 40eb25d2c3
2 changed files with 9 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import * as React from "react"
const RouteComponent = Component.make(function* AsyncRendering() {
const VAsyncComponent = yield* Component.useSuspenseFC(AsyncComponent)
const VAsyncComponent = yield* Component.useFC(AsyncComponent)
const [input, setInput] = React.useState("")
return <>
@@ -34,7 +34,9 @@ const AsyncComponent = Component.make(function* AsyncComponent() {
<Text>Rendered!</Text><br />
<VSubComponent />
</>
})
}).pipe(
Component.suspense
)
const SubComponent = Component.make(function* SubComponent() {
const [state] = React.useState(yield* Hook.useOnce(() => Effect.provide(makeUuid4, GetRandomValues.CryptoRandom)))