This commit is contained in:
@@ -10,12 +10,12 @@ import { Hooks } from "effect-fc/hooks"
|
||||
const TodosStateLive = TodosState.Default("todos")
|
||||
|
||||
export const Route = createFileRoute("/")({
|
||||
component: Component.make(Effect.fnUntraced(function* Index() {
|
||||
component: Component.makeUntraced(function* Index() {
|
||||
return yield* Todos.pipe(
|
||||
Effect.map(FC => <FC />),
|
||||
Effect.provide(yield* Hooks.useContext(TodosStateLive, { finalizerExecutionMode: "fork" })),
|
||||
)
|
||||
})).pipe(
|
||||
}).pipe(
|
||||
Component.withRuntime(runtime.context)
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user