I have the POC working!
Take a look at the test for an idea of the API, including state composition via aggregate reducers, similar to redux’ combine reducers function, but reducers are not functions, they are modules - with action
and default_state
callbacks…
Process arch looks like this after launching a single store - with some nested reducers:
Which is a hierarchy like the vDOM LiveView essentially builds, but events go all the way down to the leaf nodes by default so do not need to worry about where the events are attached or anything - you just have to run a function in the UI dispatch({type: "add", payload: 5})
- that will do something to state, or not…