@@ -40,7 +40,7 @@ export const useFC: {
|
|||||||
const f = (props: P) => Runtime.runSync(runtime)(
|
const f = (props: P) => Runtime.runSync(runtime)(
|
||||||
Effect.provideService(self(props), Scope.Scope, scope)
|
Effect.provideService(self(props), Scope.Scope, scope)
|
||||||
)
|
)
|
||||||
if (self.displayName) f.displayName = self.displayName
|
f.displayName = self.displayName ?? "Anonymous"
|
||||||
return f
|
return f
|
||||||
}, [scope])
|
}, [scope])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user