formik-wizard icon indicating copy to clipboard operation
formik-wizard copied to clipboard

Consider removing setImmediate call

Open ivankoleda opened this issue 4 years ago • 0 comments

setImmediate is deprecated and it may work fine with some tools like CRA, but it does not work out of the box with nextjs. So anyone who is using this library with build tools have to polyfill it. Seem like this call may not be wrapped in setImmediate.

     setImmediate(wizard.next)

https://github.com/zaguiini/formik-wizard/blob/master/src/index.tsx#L82 Please, correct me if I'm wrong and there is a reason for using setImmediate. Otherwise it may be removed and this will help people who are not able to use this library out of the box.

ivankoleda avatar Nov 08 '20 12:11 ivankoleda