@@ -11,10 +11,9 @@ const TodosStateLive = TodosState.Default("todos")
|
|||||||
|
|
||||||
const Index = Component.makeUntraced(function* Index() {
|
const Index = Component.makeUntraced(function* Index() {
|
||||||
const context = yield* useContext(TodosStateLive, { finalizerExecutionMode: "fork" })
|
const context = yield* useContext(TodosStateLive, { finalizerExecutionMode: "fork" })
|
||||||
return yield* Todos.pipe(
|
const TodosFC = yield* Effect.provide(Todos, context)
|
||||||
Effect.map(F => <F />),
|
|
||||||
Effect.provide(context),
|
return <TodosFC />
|
||||||
)
|
|
||||||
}).pipe(
|
}).pipe(
|
||||||
Component.withRuntime(runtime.context)
|
Component.withRuntime(runtime.context)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user