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

use Toast api in componentDidMount #1980

Closed
troyz opened this issue Oct 23, 2017 · 3 comments
Closed

use Toast api in componentDidMount #1980

troyz opened this issue Oct 23, 2017 · 3 comments
Assignees

Comments

@troyz
Copy link

troyz commented Oct 23, 2017

Version

2.0.0

Environment

"react": "^16.0.0", "react-dom": "^16.0.0", "antd-mobile": "^2.0.0",

Reproduction link

https://codepen.io/TroyZ/pen/boJyJg?&editors=001

Steps to reproduce

Just use Toast api in the componentDidMount function

What is expected?

Display the toast correctly.

What is actually happening?

Couldn't display the toast in componentDidMount, only displayed when click a button, etc.

@troyz troyz changed the title use ActivityIndicator in the Tabs use Toast api in componentDidMount Oct 23, 2017
@silentcloud silentcloud self-assigned this Oct 23, 2017
@silentcloud
Copy link
Contributor

@sachinKumarGautam
Copy link

Can anybody please tell me how to fix this issue , I am still facing problem with this issue

@paranoidjk
Copy link
Contributor

@sachin9891 Please check your antd-mobile version, this problem has been fixed.

If you still have problems, please file a new issue with a reproducible demo.

lixiaoyang1992 pushed a commit to lixiaoyang1992/ant-design-mobile that referenced this issue Apr 26, 2018
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

4 participants