Skip to content

Commit

Permalink
Fix Yoga styles not updating (#2151)
Browse files Browse the repository at this point in the history
Consider the value of a `CompactValue` in equality comparison, not just its unit
  • Loading branch information
dellisd authored Jun 27, 2024
1 parent e9dafd1 commit fbce603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Fixed:
- Using a `data object` for a widget of modifier no longer causes schema parsing to crash.
- Ensuring `LazyList`'s `itemsBefore` and `itemsAfter` properties are always within `[0, itemCount]`, to prevent `IndexOutOfBoundsException` crashes.
- Removing clear background colors from `UIViewLazyList`, now that background color modifiers are supported, since clear backgrounds negatively impact performance.
- Updating a flex container's margin now works correctly for Yoga-based layouts.


## [0.12.0] - 2024-06-18
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal class CompactValue {
}

fun equalsTo(a: CompactValue, b: CompactValue): Boolean {
return a.payload_.unit == b.payload_.unit
return a.payload_.unit == b.payload_.unit && a.payload_.value == b.payload_.value
}
}
}

0 comments on commit fbce603

Please sign in to comment.