Skip to content

Commit 4148e18

Browse files
committed
Update changelog + format code
1 parent e89681a commit 4148e18

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
_No unreleased changes_
1111

12+
## [2.5.0-pre11] - 2024-02-19
13+
14+
### Fixed
15+
- Recreate component on arg change by @TimLariviere (https://github.com/fabulous-dev/Fabulous/pull/1069)
16+
1217
## [2.5.0-pre10] - 2024-02-19
1318

1419
### Fixed
@@ -105,7 +110,8 @@ _No unreleased changes_
105110
### Changed
106111
- Fabulous.XamarinForms & Fabulous.MauiControls have been moved been out of the Fabulous repository. Find them in their own repositories: [https://github.com/fabulous-dev/Fabulous.XamarinForms](https://github.com/fabulous-dev/Fabulous.XamarinForms) / [https://github.com/fabulous-dev/Fabulous.MauiControls](https://github.com/fabulous-dev/Fabulous.MauiControls)
107112

108-
[unreleased]: https://github.com/fabulous-dev/Fabulous/compare/2.5.0-pre10...HEAD
113+
[unreleased]: https://github.com/fabulous-dev/Fabulous/compare/2.5.0-pre11...HEAD
114+
[2.5.0-pre11]: https://github.com/fabulous-dev/Fabulous/releases/tag/2.5.0-pre11
109115
[2.5.0-pre10]: https://github.com/fabulous-dev/Fabulous/releases/tag/2.5.0-pre10
110116
[2.5.0-pre9]: https://github.com/fabulous-dev/Fabulous/releases/tag/2.5.0-pre9
111117
[2.5.0-pre8]: https://github.com/fabulous-dev/Fabulous/releases/tag/2.5.0-pre8

src/Fabulous/MvuComponent.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,18 @@ module MvuComponent =
8989

9090
let Data =
9191
Attributes.defineSimpleScalar<MvuComponentData> "MvuComponent_Data" ScalarAttributeComparers.noCompare (fun _ _ _ -> ())
92-
92+
9393
let canReuseMvuComponent (prev: Widget) (curr: Widget) =
9494
let prevData =
9595
match prev.ScalarAttributes with
9696
| ValueSome attrs when attrs.Length > 0 -> attrs[0].Value :?> MvuComponentData
9797
| _ -> failwith "Component widget must have a body"
98-
98+
9999
let currData =
100100
match curr.ScalarAttributes with
101101
| ValueSome attrs when attrs.Length > 0 -> attrs[0].Value :?> MvuComponentData
102102
| _ -> failwith "Component widget must have a body"
103-
103+
104104
// NOTE: Somehow using = here crashes the app and prevents debugging...
105105
Object.Equals(prevData.Arg, currData.Arg)
106106

0 commit comments

Comments
 (0)