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