Open Beaglefoot opened 6 years ago
The root cause, of course, is that Hyperapp performs a shallow merge of your action result/return with the existing state in the same slice and finally returns only the partial state that was merged in to the caller. I can think of three ways of solving this:
There is another solution, check #21
Well, I played around with this a little bit and it seems that some actions get lost when asynchrony is involved. Please ignore...
Imagine the following scenario:
Let's run
inc1()
action and here's what we see...prev state:
next state:
What's expected next state:
Right now logger simply returns the result of an action, and I strongly believe that it should return merged slice of a state. Here's an illustration
BTW, thanks for logger!