Fix
All checks were successful
Lint / lint (push) Successful in 13s

This commit is contained in:
Julien Valverdé
2025-06-26 04:26:58 +02:00
parent 8920674b26
commit f327728b3a
2 changed files with 8 additions and 15 deletions

View File

@@ -22,7 +22,7 @@ export const use = <P, E, R>(
export const useFC = <P, E, R>(
self: ReactComponent<P, E, R>,
options?: ReactHook.ScopeOptions,
): Effect.Effect<React.FC<P>, never, R | Scope.Scope> => Effect.map(
): Effect.Effect<React.FC<P>, never, Exclude<R, Scope.Scope>> => Effect.map(
Effect.runtime(),
runtime => props => Runtime.runSync(runtime)(Effect.provideService(self(props), Scope.Scope, useScope(runtime, options))),
)