Router work
This commit is contained in:
@@ -13,13 +13,13 @@ export class TRPCContextCreator extends Context.Tag("TRPCContextCreator")<TRPCCo
|
||||
|
||||
export module TRPCContextCreator {
|
||||
export const Live = Layer.effect(TRPCContextCreator, Effect.gen(function*() {
|
||||
const run = yield* Effect.runtime<Services>().pipe(
|
||||
Effect.map(Runtime.runPromise)
|
||||
)
|
||||
const runtime = yield* Effect.runtime<Services>()
|
||||
const run = Runtime.runPromise(runtime)
|
||||
|
||||
return ({ req }) => ({
|
||||
req,
|
||||
runtime,
|
||||
run,
|
||||
req,
|
||||
})
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user