sforkowany z mirror/soapbox
Chats: fix fetching when instance is delayed
rodzic
073db97490
commit
acbf890f35
|
@ -481,6 +481,12 @@ class UI extends React.PureComponent {
|
|||
|
||||
componentDidUpdate(prevProps) {
|
||||
this.connectStreaming();
|
||||
|
||||
const { dispatch, features } = this.props;
|
||||
|
||||
if (features.chats && !prevProps.features.chats) {
|
||||
dispatch(fetchChats());
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
|
Ładowanie…
Reference in New Issue