@tamagui/web 1.43.8 → 1.43.9
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.
|
@@ -209,7 +209,7 @@ function createComponent(staticConfigIn) {
|
|
|
209
209
|
const state = propsIn.forceStyle ? { ...states[0], [propsIn.forceStyle]: true } : states[0];
|
|
210
210
|
const setState = states[1];
|
|
211
211
|
const setStateShallow = (0, import_useShallowSetState.useShallowSetState)(setState, debugProp, componentName);
|
|
212
|
-
let hasHydrated =
|
|
212
|
+
let hasHydrated = true;
|
|
213
213
|
numRenderedOfType[componentName] ?? (numRenderedOfType[componentName] = 0);
|
|
214
214
|
if (willBeAnimated) {
|
|
215
215
|
if (++numRenderedOfType[componentName] > HYDRATION_CUTOFF) {
|
|
@@ -188,7 +188,7 @@ function createComponent(staticConfigIn) {
|
|
|
188
188
|
const state = propsIn.forceStyle ? { ...states[0], [propsIn.forceStyle]: true } : states[0];
|
|
189
189
|
const setState = states[1];
|
|
190
190
|
const setStateShallow = useShallowSetState(setState, debugProp, componentName);
|
|
191
|
-
let hasHydrated =
|
|
191
|
+
let hasHydrated = true;
|
|
192
192
|
numRenderedOfType[componentName] ??= 0;
|
|
193
193
|
if (willBeAnimated) {
|
|
194
194
|
if (++numRenderedOfType[componentName] > HYDRATION_CUTOFF) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/web",
|
|
3
|
-
"version": "1.43.
|
|
3
|
+
"version": "1.43.9",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"reset.css"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tamagui/compose-refs": "1.43.
|
|
31
|
-
"@tamagui/constants": "1.43.
|
|
32
|
-
"@tamagui/helpers": "1.43.
|
|
33
|
-
"@tamagui/normalize-css-color": "1.43.
|
|
34
|
-
"@tamagui/use-did-finish-ssr": "1.43.
|
|
35
|
-
"@tamagui/use-event": "1.43.
|
|
36
|
-
"@tamagui/use-force-update": "1.43.
|
|
30
|
+
"@tamagui/compose-refs": "1.43.9",
|
|
31
|
+
"@tamagui/constants": "1.43.9",
|
|
32
|
+
"@tamagui/helpers": "1.43.9",
|
|
33
|
+
"@tamagui/normalize-css-color": "1.43.9",
|
|
34
|
+
"@tamagui/use-did-finish-ssr": "1.43.9",
|
|
35
|
+
"@tamagui/use-event": "1.43.9",
|
|
36
|
+
"@tamagui/use-force-update": "1.43.9"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "*"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@tamagui/build": "1.43.
|
|
42
|
+
"@tamagui/build": "1.43.9",
|
|
43
43
|
"@testing-library/react": "^13.4.0",
|
|
44
44
|
"csstype": "^3.0.10",
|
|
45
45
|
"react": "^18.2.0",
|
package/src/createComponent.tsx
CHANGED
|
@@ -287,7 +287,7 @@ export function createComponent<
|
|
|
287
287
|
const setStateShallow = useShallowSetState(setState, debugProp, componentName)
|
|
288
288
|
|
|
289
289
|
// cheat code
|
|
290
|
-
let hasHydrated =
|
|
290
|
+
let hasHydrated = true
|
|
291
291
|
numRenderedOfType[componentName] ??= 0
|
|
292
292
|
if (willBeAnimated) {
|
|
293
293
|
if (++numRenderedOfType[componentName] > HYDRATION_CUTOFF) {
|