Open askarzh opened 2 years ago
Hello,
I cannot understand the problem based on your description. If this is a bug, can you please provide a reproduction scenario?
If it is a clarification of the way the library works, could you suggest the place on the home page to clarify this behavior?
Thank you, -Loren
In example, we have one state and two setState. First setState provides output. So, if second setState changes the state than first setState is also triggered and provides output to next flow.
The design is to have multiple inputs to a single setState node. If you have multiple setState nodes for the same state, the behavior is undefined.
See the shared state design diagram to see how the library was intended to be used with multiple nodes setting a single state.
Got it. Actually, it works very well with multiple setState. Only provide output behavior is not clear.
Hi!
I'm not sure but I think that the current behavior of setState with provide output is not so clear. I expect the setState output should be triggered only by the current setState and not the others.