We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 669b28c commit c8082a9Copy full SHA for c8082a9
1 file changed
app/javascript/mastodon/features/list_timeline/index.js
@@ -75,6 +75,23 @@ class ListTimeline extends React.PureComponent {
75
this.disconnect = dispatch(connectListStream(id));
76
}
77
78
+ componentWillReceiveProps (nextProps) {
79
+ const { dispatch } = this.props;
80
+ const { id } = nextProps.params;
81
+
82
+ if (id !== this.props.params.id) {
83
+ if (this.disconnect) {
84
+ this.disconnect();
85
+ this.disconnect = null;
86
+ }
87
88
+ dispatch(fetchList(id));
89
+ dispatch(expandListTimeline(id));
90
91
+ this.disconnect = dispatch(connectListStream(id));
92
93
94
95
componentWillUnmount () {
96
if (this.disconnect) {
97
this.disconnect();
0 commit comments