kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'fix-chats-fetch' into 'develop'
Chats: fix fetching when instance is delayed See merge request soapbox-pub/soapbox-fe!777v1.x.x
commit
3dfd066685
|
@ -481,6 +481,12 @@ class UI extends React.PureComponent {
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
this.connectStreaming();
|
this.connectStreaming();
|
||||||
|
|
||||||
|
const { dispatch, features } = this.props;
|
||||||
|
|
||||||
|
if (features.chats && !prevProps.features.chats) {
|
||||||
|
dispatch(fetchChats());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
|
Ładowanie…
Reference in New Issue