fabulous-dev / Fabulous

Declarative UI framework for cross-platform mobile & desktop apps, using MVU and F# functional programming
https://fabulous.dev
Apache License 2.0
1.13k stars 122 forks source link

Ensure MapMsg is updated on view reuse #909

Closed TimLariviere closed 2 years ago

TimLariviere commented 2 years ago

Functions like MapMsg can't be compared directly so we rely on a hard-coded ScalarAttributeComparison. MapMsg was set to Identical which will force Fabulous to still use the initial MapMsg, even in case of reuse with a different MapMsg.

We simply need to set it to Different to fix that.