@@ -53,7 +53,7 @@ export const suspense = <T extends Component.Component<any, any, P>, P extends {
|
||||
& Component.Component<Component.Component.Error<T>, Component.Component.Context<T>, P & Suspense.Props>
|
||||
& Suspense
|
||||
) => Object.setPrototypeOf(
|
||||
{ ...self, ...SuspenseProto },
|
||||
Object.assign(function() {}, self, SuspenseProto),
|
||||
Object.getPrototypeOf(self),
|
||||
)
|
||||
|
||||
@@ -69,6 +69,6 @@ export const withOptions: {
|
||||
self: T,
|
||||
options: Partial<Suspense.Options>,
|
||||
): T => Object.setPrototypeOf(
|
||||
{ ...self, ...options },
|
||||
Object.assign(function() {}, self, options),
|
||||
Object.getPrototypeOf(self),
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user