react-async-states
react-async-states copied to clipboard
wrap Producer Promise should not receive the async state instance anymore
this should be decoupled from the async state, actually wrap produce promise takes the following from the instance:
- originalProducer
- replaceState
- suspender
- setState
We should be able to
wrapProducer(producer, setState, setSuspender) {
}