@tamagui/core 1.132.4 → 1.132.5-1752435204050

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 CHANGED
@@ -7642,8 +7642,7 @@ 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 || // avoids onLayout
7646
- props.containerType === "normal") return groupContextParent;
7645
+ if (!groupName || props.passThrough) return groupContextParent;
7647
7646
  (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
7648
7647
  var listeners = /* @__PURE__ */ new Set();
7649
7648
  return stateRef.current.group = {
@@ -7746,7 +7745,8 @@ var require_createComponent_native = __commonJS({
7746
7745
  }, themeName = (themeState == null ? void 0 : themeState.name) || "";
7747
7746
  process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
7748
7747
  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;
7749
- if (splitStyles && groupContext) {
7748
+ if (splitStyles && groupContext && // avoids onLayout if we don't need it
7749
+ props.containerType !== "normal") {
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,7 +7856,8 @@ 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 && (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 && // avoids onLayout if we don't need it
7860
+ props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
7860
7861
  var _stateRef_current_group, layout = e.nativeEvent.layout;
7861
7862
  groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
7862
7863
  layout