diff --git a/packages/effect-fc/src/Component.ts b/packages/effect-fc/src/Component.ts index 14208ee..f1b14e9 100644 --- a/packages/effect-fc/src/Component.ts +++ b/packages/effect-fc/src/Component.ts @@ -63,12 +63,12 @@ export const ComponentPrototype: ComponentPrototype = Object.free this: Component, runtimeRef: React.RefObject>>, ) { - return ((props: P) => Runtime.runSync(runtimeRef.current)( + return (props: P) => Runtime.runSync(runtimeRef.current)( Effect.andThen( useScope([], this), scope => Effect.provideService(this.body(props), Scope.Scope, scope), ) - )) + ) }, setFunctionComponentName

(