Fix infinite loading indicator

This commit is contained in:
Diego Mello 2022-11-25 16:14:50 -03:00
parent 1ea3916e94
commit e0b5030f6a
1 changed files with 2 additions and 1 deletions

View File

@ -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}