@tamagui/core 1.132.5-1752435204050 → 1.132.5
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/dist/native.js +4 -5
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +4 -5
- package/dist/test.native.js.map +1 -1
- package/package.json +10 -10
package/dist/native.js
CHANGED
|
@@ -7642,7 +7642,8 @@ var require_createComponent_native = __commonJS({
|
|
|
7642
7642
|
}
|
|
7643
7643
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
7644
7644
|
var _stateRef_current_group;
|
|
7645
|
-
if (!groupName || props.passThrough
|
|
7645
|
+
if (!groupName || props.passThrough || // avoids onLayout
|
|
7646
|
+
props.containerType === "normal") return groupContextParent;
|
|
7646
7647
|
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
7647
7648
|
var listeners = /* @__PURE__ */ new Set();
|
|
7648
7649
|
return stateRef.current.group = {
|
|
@@ -7745,8 +7746,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7745
7746
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
7746
7747
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
7747
7748
|
var splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
7748
|
-
if (splitStyles && groupContext
|
|
7749
|
-
props.containerType !== "normal") {
|
|
7749
|
+
if (splitStyles && groupContext) {
|
|
7750
7750
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
7751
7751
|
if (groupState && groupState.layout === void 0) {
|
|
7752
7752
|
var _splitStyles_style, _splitStyles_style1;
|
|
@@ -7856,8 +7856,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7856
7856
|
}
|
|
7857
7857
|
process.env.NODE_ENV === "development" && props.untilMeasured && !props.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
|
|
7858
7858
|
|
|
7859
|
-
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, splitStyles && groupContext &&
|
|
7860
|
-
props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7859
|
+
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, splitStyles && groupContext && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7861
7860
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
7862
7861
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
7863
7862
|
layout
|