react-async-states icon indicating copy to clipboard operation
react-async-states copied to clipboard

wrap Producer Promise should not receive the async state instance anymore

Open incepter opened this issue 3 years ago • 0 comments

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) {
  
}

incepter avatar May 03 '22 14:05 incepter