So I haven't been doing too much sodium lately... at work it's all React/DOM and at nights/weekends I'm trying to rebuild my webgl renderer in Rust/WASM
But... for the work stuff I was able to get the green-light to start using XState as the state management for React.
XState tries hard to follow the SCXML spec, and as such - offers the cabability to invoke sub-machines.
What's interesting here is that those submachines don't need to be defined directly as state machines... currently XState supports Promises and Callbacks as well.
However, the Callback approach seems to be a placeholder for the real intention - to support invoking Observables. I believe Sodium can fit into that really well... maybe more the Streams but Cells too
On one foot that could be really nice - manage the overall app via statecharts/xstate, and then let Sodium drive the contextual/extra state
Like for example - a traffic light could be modelled with statecharts - red/green/yellow, but then a fade in/out effect could be controlled by modelling the actual light intensity with Sodium.
Just a thought...