Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Supply eats all values from Channel, not allowing reuse across multiple react blocks #2646
The data from a channel is not received anymore if the same react/whenever block is executed twice.
The second execution should receive the second item in the channel.
nothing is received
Steps to Reproduce
remark: if it would be possible to set a timeout on Channel.receive I would not have found the bug ;-)
I don't think this is a bug. You mark the
If you remove the
Now, according to documentation, if you would add a
Please disregard previous comments: I think I understand what happens.
When you use a
I think this could be fixed by mixing in the created
@jnthn Is that a solution to this problem? Or is there a better way?
Alas, a naive way of keeping the
I'll be away for a few days, so won't be able to poke at it for a bit, but I'd perhaps try a patch in this direction: