Fix Query lifecycle
Lint / lint (push) Successful in 39s

This commit is contained in:
Julien Valverdé
2026-07-19 20:41:59 +02:00
parent cc01e46997
commit 6551969bb1
4 changed files with 93 additions and 78 deletions
+13 -1
View File
@@ -1,4 +1,16 @@
import { Clipboard, Geolocation, Permissions } from "@effect/platform-browser"
import { DateTime, Layer } from "effect"
import { FetchHttpClient } from "effect/unstable/http"
import { QueryClient, ReactRuntime } from "effect-fc-next"
export const runtime = ReactRuntime.make(QueryClient.layer())
export const layer = Layer.empty.pipe(
Layer.provideMerge(QueryClient.layer()),
Layer.provideMerge(DateTime.layerCurrentZoneLocal),
Layer.provideMerge(Clipboard.layer),
Layer.provideMerge(Geolocation.layer),
Layer.provideMerge(Permissions.layer),
Layer.provideMerge(FetchHttpClient.layer),
)
export const runtime = ReactRuntime.make(layer)