0.3.0 #50
@@ -63,12 +63,12 @@ export const ComponentPrototype: ComponentPrototype<any, any, any> = Object.free
|
||||
this: Component<P, A, E, R, F>,
|
||||
runtimeRef: React.RefObject<Runtime.Runtime<Exclude<R, Scope.Scope>>>,
|
||||
) {
|
||||
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<P extends {}, A extends React.ReactNode, E, R, F extends Component.Signature>(
|
||||
|
||||
Reference in New Issue
Block a user