loktar00 / react-lazy-load

React component that renders children elements when they enter the viewport.
MIT License
979 stars 166 forks source link

Unable to find node on an unmounted component #117

Open shablenko opened 6 years ago

shablenko commented 6 years ago

I am trying to trigger click on button every time it shows to user, everything works, but i am receiving following error

Any ideas how to fix?

image

!this.props.busy && this.props.loadMore &&
<LazyLoad onContentVisible={this.props.onLoadMore}>
      <button onClick={this.props.onLoadMore} />
</LazyLoad>
sheerun commented 6 years ago

same issue

yogihanu commented 6 years ago

did you check event binding? like this.onClick = this.onClick.bind(this);

otakustay commented 4 years ago

Maybe related to suspense