diff --git a/packages/effect-fc/src/Component.ts b/packages/effect-fc/src/Component.ts index 236e895..be8bee7 100644 --- a/packages/effect-fc/src/Component.ts +++ b/packages/effect-fc/src/Component.ts @@ -59,12 +59,12 @@ const ComponentProto = Object.freeze({ }, []) }), - makeFunctionComponent( - this: Component, - runtimeRef: React.RefObject>, + makeFunctionComponent ( + this: Component, + runtimeRef: React.RefObject>>, scope: Scope.Scope, - ): React.FC { - return (props: any) => Runtime.runSync(runtimeRef.current)( + ): React.FC

{ + return (props: P) => Runtime.runSync(runtimeRef.current)( Effect.provideService(this.body(props), Scope.Scope, scope) ) },