Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast. hideToast()并没有真的将Toast隐藏 #65

Open
xieyihao opened this issue May 26, 2020 · 0 comments
Open

Toast. hideToast()并没有真的将Toast隐藏 #65

xieyihao opened this issue May 26, 2020 · 0 comments

Comments

@xieyihao
Copy link

场景:查接口前显示loading,查完后隐藏loading。

    Toast.loading(lang.ToastText.loading, 0);
    this.getMessageList(pageType)
      .then((data) => {
        Toast.hideToast();
        const { list } = data;
        this.setState({
          pageState: 'normal',
          messageList: list
        });
      })
      .catch((err) => {
        Toast.error(err.message);
        this.setState({
          pageState: 'error',
          messageList: []
        });
      });

截图:
image

现在发现在接口太快的时候,Toast.hideToast()并没有真的将Toast隐藏,偶现。
接口返回在30-100ms;

目前,只能延长调用Toast.hideToast()的时间。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant