Skip to content

Conversation

robwise
Copy link
Owner

@robwise robwise commented Oct 11, 2017

handleScroll is throttled by 200ms, so it's often the case that the listener gets fired after the component has already unmounted and removed the listener. Adding this guard clause protects against this.

`handleScroll` is throttled by 200ms, so it's often the case that the listener gets fired after the component has already unmounted and removed the listener. Adding this guard clause protects against this.
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

Successfully merging this pull request may close these issues.

1 participant