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

enhance the onAbort Api

Open incepter opened this issue 3 years ago • 0 comments

by no doubt, for the future, onAbort needs a configuration object as second parameter.

for now, it has to include

  • whether this callback should be removed when producer resolves: this means that you will be able to remove some abort callbacks once you resolve, and register new ones if working with emit and props.run. should default to false. ( the library keeps the array of abort callbacks alive until the next run, so you may want to decrease it)

incepter avatar Apr 26 '22 02:04 incepter