@graphcommerce/next-ui 9.0.4-canary.11 → 9.0.4-canary.13
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.
- package/CHANGELOG.md +4 -0
- package/hooks/memoDeep.ts +4 -3
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
package/hooks/memoDeep.ts
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
2
|
+
import diff from '@graphcommerce/react-hook-form/src/diff'
|
3
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
2
4
|
import { equal } from '@wry/equality'
|
3
5
|
import type { FunctionComponent, NamedExoticComponent } from 'react'
|
4
6
|
import { memo } from 'react'
|
@@ -23,11 +25,10 @@ export function memoDeep<P extends object>(
|
|
23
25
|
const result = equal(prevProps, nextProps)
|
24
26
|
const ms = performance.now() - start
|
25
27
|
|
26
|
-
if (ms < 0.2) return result
|
28
|
+
if (!result && ms < 0.2) return result
|
27
29
|
|
28
|
-
console.warn(
|
30
|
+
console.warn(`memoDeep took ${ms.toFixed(2)}ms`, {
|
29
31
|
result,
|
30
|
-
ms,
|
31
32
|
Component,
|
32
33
|
prevProps,
|
33
34
|
nextProps,
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
5
|
-
"version": "9.0.4-canary.
|
5
|
+
"version": "9.0.4-canary.13",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -24,13 +24,13 @@
|
|
24
24
|
"@emotion/react": "^11",
|
25
25
|
"@emotion/server": "^11",
|
26
26
|
"@emotion/styled": "^11",
|
27
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.
|
28
|
-
"@graphcommerce/framer-next-pages": "^9.0.4-canary.
|
29
|
-
"@graphcommerce/framer-scroller": "^9.0.4-canary.
|
30
|
-
"@graphcommerce/framer-utils": "^9.0.4-canary.
|
31
|
-
"@graphcommerce/image": "^9.0.4-canary.
|
32
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.
|
33
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.
|
27
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.13",
|
28
|
+
"@graphcommerce/framer-next-pages": "^9.0.4-canary.13",
|
29
|
+
"@graphcommerce/framer-scroller": "^9.0.4-canary.13",
|
30
|
+
"@graphcommerce/framer-utils": "^9.0.4-canary.13",
|
31
|
+
"@graphcommerce/image": "^9.0.4-canary.13",
|
32
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.13",
|
33
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.13",
|
34
34
|
"@lingui/core": "^4.2.1",
|
35
35
|
"@lingui/macro": "^4.2.1",
|
36
36
|
"@lingui/react": "^4.2.1",
|