From 0ac6fd2e06787068ed40f7e3ecfa98fa63691f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Wed, 23 Jul 2025 14:40:33 +0200 Subject: [PATCH] Fix --- packages/effect-fc/src/Component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) ) },