Closed HuXin957 closed 2 years ago
https://github1s.com/ant-design/ant-design-mobile-rn/blob/HEAD/components/toast/ToastContainer.tsx#L59
Toast.loading('xx',0,()=>console.log('hello')) Toast.removeAll()
在调用Toast.removeAll()时能正常输出 “hello”
没有执行回调
链接中第59行,1、loading方法的duration传0 会进不了判断。2、通过remove或removeAll 关闭loading时,我认为回调应该放在关闭loading的方法中,目前异步使用loading时无法执行回调
Reproduction link
https://github1s.com/ant-design/ant-design-mobile-rn/blob/HEAD/components/toast/ToastContainer.tsx#L59
Steps to reproduce
Toast.loading('xx',0,()=>console.log('hello')) Toast.removeAll()
What is expected?
在调用Toast.removeAll()时能正常输出 “hello”
What is actually happening?
没有执行回调
链接中第59行,1、loading方法的duration传0 会进不了判断。2、通过remove或removeAll 关闭loading时,我认为回调应该放在关闭loading的方法中,目前异步使用loading时无法执行回调