24 lines · 811 B · TypeScript
RawDownload
import { Connection } from "@t3tools/client-runtime/connection";import * as Layer from "effect/Layer";import { Atom } from "effect/unstable/reactivity"; import { runtimeContextLayer } from "../lib/runtime";import { connectionPlatformLayer } from "./platform"; const providedConnectionPlatformLayer = connectionPlatformLayer.pipe(  Layer.provide(runtimeContextLayer),); type ConnectionLayerSource =  | typeof Connection.layer  | typeof runtimeContextLayer  | typeof connectionPlatformLayer; const connectionLayer = Connection.layer.pipe(  Layer.provideMerge(Layer.mergeAll(runtimeContextLayer, providedConnectionPlatformLayer)),); export const connectionAtomRuntime: Atom.AtomRuntime<  Layer.Success<ConnectionLayerSource>,  Layer.Error<ConnectionLayerSource>> = Atom.runtime(connectionLayer);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t