Fixed PostsView not unregistering it's PreferenceStore listener when unmounting
Этот коммит содержится в:
@@ -385,6 +385,7 @@ export default class PostsView extends React.Component {
|
|||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
window.removeEventListener('resize', this.handleResize);
|
window.removeEventListener('resize', this.handleResize);
|
||||||
this.scrollStopAction.cancel();
|
this.scrollStopAction.cancel();
|
||||||
|
PreferenceStore.removeChangeListener(this.updateState);
|
||||||
}
|
}
|
||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
if (this.props.postList != null) {
|
if (this.props.postList != null) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user