Fix infinite loading indicator
This commit is contained in:
parent
1ea3916e94
commit
e0b5030f6a
|
@ -390,7 +390,7 @@ class ListContainer extends React.Component<IListContainerProps, IListContainerS
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
console.count(`${this.constructor.name}.render calls`);
|
console.count(`${this.constructor.name}.render calls`);
|
||||||
const { rid, tmid, listRef, theme } = this.props;
|
const { rid, tmid, listRef, theme, loading } = this.props;
|
||||||
const { messages, refreshing } = this.state;
|
const { messages, refreshing } = this.state;
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -400,6 +400,7 @@ class ListContainer extends React.Component<IListContainerProps, IListContainerS
|
||||||
scrollEventThrottle={16}
|
scrollEventThrottle={16}
|
||||||
listRef={listRef}
|
listRef={listRef}
|
||||||
data={messages}
|
data={messages}
|
||||||
|
extraData={loading}
|
||||||
renderItem={this.renderItem}
|
renderItem={this.renderItem}
|
||||||
onEndReached={this.onEndReached}
|
onEndReached={this.onEndReached}
|
||||||
ListFooterComponent={this.renderFooter}
|
ListFooterComponent={this.renderFooter}
|
||||||
|
|
Loading…
Reference in New Issue