@@ -100,9 +100,9 @@ export const memo: {
|
||||
} = Function.dual(2, <T extends Component<any, any, any>>(
|
||||
self: ExcludeKeys<T, keyof Memoized<Component.Props<T>>>,
|
||||
propsAreEqual?: Equivalence.Equivalence<Component.Props<T>>,
|
||||
): T & Memoized<Component.Props<T>> => Object.assign(
|
||||
Object.create(Object.getPrototypeOf(self)),
|
||||
): T & Memoized<Component.Props<T>> => Object.setPrototypeOf(
|
||||
{ ...self, memo: true, propsAreEqual },
|
||||
Object.getPrototypeOf(self),
|
||||
))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user