@@ -24,7 +24,7 @@ export const AsyncPrototype: AsyncPrototype = Object.freeze({
|
|||||||
const Inner = (props: { readonly [PromiseTypeId]: Promise<React.ReactNode> }) => React.use(props[PromiseTypeId])
|
const Inner = (props: { readonly [PromiseTypeId]: Promise<React.ReactNode> }) => React.use(props[PromiseTypeId])
|
||||||
Inner.displayName = `${ this.displayName }Inner`
|
Inner.displayName = `${ this.displayName }Inner`
|
||||||
|
|
||||||
return (props: {}) => {
|
return (props: P) => {
|
||||||
const promise = Runtime.runPromise(runtimeRef.current)(
|
const promise = Runtime.runPromise(runtimeRef.current)(
|
||||||
Effect.andThen(
|
Effect.andThen(
|
||||||
Component.useScope([], this),
|
Component.useScope([], this),
|
||||||
|
|||||||
Reference in New Issue
Block a user