@tamagui/web 3.0.0-beta.1562.1 → 3.0.0-beta.1564.1

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.
@@ -896,7 +896,54 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
896
896
  }
897
897
  var direct = styleState;
898
898
  var prevStyle = direct.flatPrevStyle;
899
- if (prevStyle && styleState.style && !direct.flatStyleChanged && Object.keys(prevStyle).length === Object.keys(styleState.style).length) styleState.style = prevStyle;
899
+ if (prevStyle && styleState.style && !direct.flatStyleChanged && Object.keys(prevStyle).length === Object.keys(styleState.style).length) {
900
+ var previousTransform = prevStyle.transform;
901
+ var nextTransform = styleState.style.transform;
902
+ var transformMatches = previousTransform === nextTransform;
903
+ if (!transformMatches && Array.isArray(previousTransform) && Array.isArray(nextTransform) && previousTransform.length === nextTransform.length) {
904
+ transformMatches = true;
905
+ for (var index1 = 0; index1 < nextTransform.length; index1++) {
906
+ var previousPart = previousTransform[index1];
907
+ var nextPart = nextTransform[index1];
908
+ if (previousPart === nextPart) continue;
909
+ if (!previousPart || !nextPart || typeof previousPart !== "object" || typeof nextPart !== "object") {
910
+ transformMatches = false;
911
+ break;
912
+ }
913
+ var keys = Object.keys(nextPart);
914
+ if (keys.length !== Object.keys(previousPart).length) {
915
+ transformMatches = false;
916
+ break;
917
+ }
918
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
919
+ try {
920
+ var _loop = function() {
921
+ var key9 = _step1.value;
922
+ var previousValue = previousPart[key9];
923
+ var nextValue = nextPart[key9];
924
+ if (previousValue !== nextValue && !(Array.isArray(previousValue) && Array.isArray(nextValue) && previousValue.length === nextValue.length && nextValue.every(function(value, valueIndex) {
925
+ return value === previousValue[valueIndex];
926
+ }))) {
927
+ transformMatches = false;
928
+ return "break";
929
+ }
930
+ };
931
+ for (var _iterator1 = keys[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) if (_loop() === "break") break;
932
+ } catch (err) {
933
+ _didIteratorError1 = true;
934
+ _iteratorError1 = err;
935
+ } finally {
936
+ try {
937
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
938
+ } finally {
939
+ if (_didIteratorError1) throw _iteratorError1;
940
+ }
941
+ }
942
+ if (!transformMatches) break;
943
+ }
944
+ }
945
+ if (transformMatches) styleState.style = prevStyle;
946
+ }
900
947
  var result = {
901
948
  hasMedia,
902
949
  fontFamily: styleState.fontFamily,