@tamagui/web 1.125.11 → 1.125.12
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/web",
|
|
3
|
-
"version": "1.125.
|
|
3
|
+
"version": "1.125.12",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
"reset.css"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tamagui/compose-refs": "1.125.
|
|
31
|
-
"@tamagui/constants": "1.125.
|
|
32
|
-
"@tamagui/helpers": "1.125.
|
|
33
|
-
"@tamagui/normalize-css-color": "1.125.
|
|
34
|
-
"@tamagui/timer": "1.125.
|
|
35
|
-
"@tamagui/types": "1.125.
|
|
36
|
-
"@tamagui/use-did-finish-ssr": "1.125.
|
|
37
|
-
"@tamagui/use-event": "1.125.
|
|
38
|
-
"@tamagui/use-force-update": "1.125.
|
|
30
|
+
"@tamagui/compose-refs": "1.125.12",
|
|
31
|
+
"@tamagui/constants": "1.125.12",
|
|
32
|
+
"@tamagui/helpers": "1.125.12",
|
|
33
|
+
"@tamagui/normalize-css-color": "1.125.12",
|
|
34
|
+
"@tamagui/timer": "1.125.12",
|
|
35
|
+
"@tamagui/types": "1.125.12",
|
|
36
|
+
"@tamagui/use-did-finish-ssr": "1.125.12",
|
|
37
|
+
"@tamagui/use-event": "1.125.12",
|
|
38
|
+
"@tamagui/use-force-update": "1.125.12"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": "*",
|
|
42
42
|
"react-dom": "*"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@tamagui/build": "1.125.
|
|
45
|
+
"@tamagui/build": "1.125.12",
|
|
46
46
|
"@testing-library/react": "^16.1.0",
|
|
47
47
|
"csstype": "^3.0.10",
|
|
48
48
|
"react": "*",
|
|
@@ -11,20 +11,19 @@ export function createShallowSetState<State extends Object>(
|
|
|
11
11
|
debugIn?: DebugProp,
|
|
12
12
|
callback?: (nextState: Record<string, any>) => void
|
|
13
13
|
) {
|
|
14
|
-
const debug = true
|
|
15
14
|
// this must be memoized or it ruins performance in components
|
|
16
15
|
return useCallback(
|
|
17
16
|
(next?: Partial<State>) => {
|
|
18
17
|
const wrap = transition ? startTransition : callImmediate
|
|
19
18
|
wrap(() => {
|
|
20
19
|
setter((prev) => {
|
|
21
|
-
const out = mergeIfNotShallowEqual(prev, next, onlyAllow,
|
|
20
|
+
const out = mergeIfNotShallowEqual(prev, next, onlyAllow, debugIn)
|
|
22
21
|
callback?.(out)
|
|
23
22
|
return out
|
|
24
23
|
})
|
|
25
24
|
})
|
|
26
25
|
},
|
|
27
|
-
[setter, onlyAllow ? onlyAllow.join('') : '', transition,
|
|
26
|
+
[setter, onlyAllow ? onlyAllow.join('') : '', transition, debugIn, callback]
|
|
28
27
|
)
|
|
29
28
|
}
|
|
30
29
|
|