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.16k stars 122 forks source link

Guard against inner component null messages #1080

Closed edgarfgp closed 6 months ago

edgarfgp commented 7 months ago

In cases where you have a Component() which itself is in a Component(program) and a side effect happens in the inner component, the outer component will dispatch a message that is null.

So here we need make sure that we don't process null messages ValueSome null

edgarfgp commented 6 months ago

I guess we no longer need this fix/check if we create dedicated non dispatch define functions.