@@ -59,7 +59,7 @@ export const ComponentImplPrototype: ComponentImplPrototype<any, any> = Object.f
|
||||
contextRef: React.RefObject<Context.Context<Exclude<R, Scope.Scope>>>,
|
||||
) {
|
||||
return (props: P) => Effect.runSyncWith(contextRef.current)(
|
||||
Effect.andThen(
|
||||
Effect.flatMap(
|
||||
useScope([], this),
|
||||
scope => Effect.provideService(this.body(props), Scope.Scope, scope),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user