@@ -179,12 +179,12 @@ export const useFork: {
|
||||
})
|
||||
|
||||
|
||||
export const useContextSync: {
|
||||
export const useContext: {
|
||||
<ROut, E, RIn>(
|
||||
layer: Layer.Layer<ROut, E, RIn>,
|
||||
options?: ScopeOptions,
|
||||
): Effect.Effect<Context.Context<ROut>, E, Exclude<RIn, Scope.Scope>>
|
||||
} = Effect.fn("useContextSync")(function* <ROut, E, RIn>(
|
||||
} = Effect.fn("useContext")(function* <ROut, E, RIn>(
|
||||
layer: Layer.Layer<ROut, E, RIn>,
|
||||
options?: ScopeOptions,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user