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

This commit is contained in:
Julien Valverdé
2025-08-09 01:16:13 +02:00
parent ad9217999a
commit 8443da4235
6 changed files with 22 additions and 24 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(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)
)
})