0.3.0 #50

Merged
Thilawyn merged 9 commits from next into master 2026-06-04 17:06:52 +02:00
Showing only changes of commit 56ff7ae3a4 - Show all commits
+2 -2
View File
@@ -63,12 +63,12 @@ export const ComponentPrototype: ComponentPrototype<any, any, any> = Object.free
this: Component<P, A, E, R, F>, this: Component<P, A, E, R, F>,
runtimeRef: React.RefObject<Runtime.Runtime<Exclude<R, Scope.Scope>>>, 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( Effect.andThen(
useScope([], this), useScope([], this),
scope => Effect.provideService(this.body(props), Scope.Scope, scope), scope => Effect.provideService(this.body(props), Scope.Scope, scope),
) )
)) )
}, },
setFunctionComponentName<P extends {}, A extends React.ReactNode, E, R, F extends Component.Signature>( setFunctionComponentName<P extends {}, A extends React.ReactNode, E, R, F extends Component.Signature>(