@teselagen/ove 0.8.22 → 0.8.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +0,0 @@
1
- import { shouldUpdate } from "recompose";
2
- import { isEqualWith, isFunction } from "lodash-es";
3
-
4
- const isEq = (o1, o2) => {
5
- const isEq = isEqualWith(o1, o2, function (val1, val2) {
6
- if (isFunction(val1) && isFunction(val2)) {
7
- return val1 === val2 || val1.toString() === val2.toString();
8
- }
9
- });
10
- return isEq;
11
- };
12
-
13
- const pure = BaseComponent => {
14
- const hoc = shouldUpdate((props, nextProps) => !isEq(props, nextProps));
15
- return hoc(BaseComponent);
16
- };
17
-
18
- export default pure;
@@ -1,2 +0,0 @@
1
- export default pure;
2
- declare function pure(BaseComponent: any): any;