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

onRefresh can't work #65

Open
Chryseis opened this issue Sep 30, 2017 · 2 comments
Open

onRefresh can't work #65

Chryseis opened this issue Sep 30, 2017 · 2 comments

Comments

@Chryseis
Copy link

when children component changed, react-iscroll can't recalculate the height.

image

image

source code:https://github.com/Chryseis/elemDemo4React

@Chryseis
Copy link
Author

Chryseis commented Oct 1, 2017

image

children Component setState, parent Component 's componentDidUpdate will not enter. it can't tigger refresh

@Chryseis
Copy link
Author

Chryseis commented Oct 1, 2017

I found a hack solution, in my parent component add a funciton that will setState, then push it to children component,when children component setState,invoking parent's funciton, enter parent's componentDidUpdate, tigger refresh.
image
image
image

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