react-iscroll icon indicating copy to clipboard operation
react-iscroll copied to clipboard

onRefresh can't work

Open Chryseis opened this issue 8 years ago • 2 comments

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

image

image

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

Chryseis avatar Sep 30 '17 09:09 Chryseis

image

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

Chryseis avatar Oct 01 '17 16:10 Chryseis

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

Chryseis avatar Oct 01 '17 17:10 Chryseis