react-async-states
react-async-states copied to clipboard
Add a way to bailout a producer run
Now, when the producer starts working, it cannot be stopped and state is updated.
We need a way to stop running before the first promise encounter.
something like:
props.bailout(reason);
props.dontRun(reason);
props.abort(); // already exists, but passes the status to aborted and not what we need