Example cleanup
All checks were successful
Lint / lint (push) Successful in 11s

This commit is contained in:
Julien Valverdé
2025-08-07 04:58:56 +02:00
parent 53bceb3a8a
commit d38a5a4afd
5 changed files with 16 additions and 16 deletions

View File

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