Merge branch 'pagination' into 'develop'
Fix conversation list pagination See merge request soapbox-pub/soapbox!2316
This commit is contained in:
commit
aad7df89a5
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@ const ConversationsList: React.FC = () => {
|
||||||
|
|
||||||
const conversations = useAppSelector((state) => state.conversations.items);
|
const conversations = useAppSelector((state) => state.conversations.items);
|
||||||
const isLoading = useAppSelector((state) => state.conversations.isLoading);
|
const isLoading = useAppSelector((state) => state.conversations.isLoading);
|
||||||
|
const hasMore = useAppSelector((state) => state.conversations.hasMore);
|
||||||
|
|
||||||
const getCurrentIndex = (id: string) => conversations.findIndex(x => x.id === id);
|
const getCurrentIndex = (id: string) => conversations.findIndex(x => x.id === id);
|
||||||
|
|
||||||
|
@ -50,6 +51,7 @@ const ConversationsList: React.FC = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollableList
|
<ScrollableList
|
||||||
|
hasMore={hasMore}
|
||||||
onLoadMore={handleLoadOlder}
|
onLoadMore={handleLoadOlder}
|
||||||
id='direct-list'
|
id='direct-list'
|
||||||
scrollKey='direct'
|
scrollKey='direct'
|
||||||
|
|
Loading…
Reference in a new issue