Files
effect-fc/packages/example/src/runtime.ts
Julien Valverdé 925a3d1264
All checks were successful
Lint / lint (push) Successful in 11s
Runtime refactoring
2025-08-21 01:57:53 +02:00

16 lines
538 B
TypeScript

import { FetchHttpClient } from "@effect/platform"
import { Clipboard, Geolocation, Permissions } from "@effect/platform-browser"
import { DateTime, Layer } from "effect"
import { ReactRuntime } from "effect-fc"
export const AppLive = Layer.empty.pipe(
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(AppLive)