rc-slider-captcha
rc-slider-captcha copied to clipboard
Request for a separate callback for onRefresh
With onRequest
as the only callback available for modifying state there is some difficulty in both updating the state and returning it. Would it not be preferred to decouple these concerns using a separate callback, (e.g. onRefresh
) in order to manage the state asynchronously from the function that returns the state values to your component?