Commit 946a1667 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub

Revert #3851 (#3878)

parent 31cd6490
......@@ -91,14 +91,6 @@ class Status extends ImmutablePureComponent {
}
componentWillUnmount () {
if (!this.props.intersectionObserverWrapper) {
// TODO: enable IntersectionObserver optimization for notification statuses.
// These are managed in notifications/index.js rather than status_list.js
return;
}
this.props.intersectionObserverWrapper.unobserve(this.props.id, this.node);
this.componentMounted = false;
}
......
......@@ -37,13 +37,6 @@ class IntersectionObserverWrapper {
}
}
unobserve (id, node) {
if (this.observer) {
delete this.callbacks[id];
this.observer.unobserve(node);
}
}
disconnect () {
if (this.observer) {
this.observer.disconnect();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment