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

This commit is contained in:
Julien Valverdé
2025-02-24 20:18:56 +01:00
parent 60274266da
commit 690dec1f1a
5 changed files with 13 additions and 88 deletions

View File

@@ -10,4 +10,8 @@ export const GlobalContext = ReffuseContext.make<
| HttpClient.HttpClient
>()
export const R = Reffuse.make(GlobalContext)
export class GlobalReffuse extends Reffuse.Reffuse.pipe(
Reffuse.withContexts(GlobalContext)
) {}
export const R = new GlobalReffuse()

View File

@@ -1,7 +1,10 @@
import { GlobalContext } from "@/reffuse"
import { GlobalReffuse } from "@/reffuse"
import { Reffuse, ReffuseContext } from "reffuse"
import { TodosState } from "./services"
export const TodosContext = ReffuseContext.make<TodosState.TodosState>()
export const R = Reffuse.make(GlobalContext, TodosContext)
export const R = new class TodosReffuse extends GlobalReffuse.pipe(
Reffuse.withContexts(TodosContext)
) {}