# GroupChannelCollection의 Pagination 문제

**URL:** <https://community.sendbird.com/t/groupchannelcollection-pagination/7461>\
**Category:** JavaScript\
**Created:** [May 31, 2023, 9:53am UTC](https://community.sendbird.com/t/groupchannelcollection-pagination/7461 "2023-05-31T09:53:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghana369](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/ghana369/32/4097_2.png) [@ghana369](https://community.sendbird.com/u/ghana369)\
**Post date:** [May 31, 2023, 9:53am UTC](https://community.sendbird.com/t/groupchannelcollection-pagination/7461/1 "2023-05-31T09:53:28Z")

</div>

## **[Problem/Question]** GroupChannelCollection의 hasMore와 loadMore를 이용하여 Pagination을 구현하고 있습니다. 그런데 sb.groupChannel.createGroupChannelCollection의 params에 limit 값이 존재하고, order 값이 GroupChannelListOrder.LATEST\_LAST\_MESSAGE 인 경우에 결과 값이 예상과 많이 다르게 나옵니다. 예상되는 channels의 길이가 18이라면, 실제 리턴되는 channels는 7입니다.

**[SDK Version]**  
“@sendbird/chat”: “^4.8.2”,

**[Reproduction Steps]**  
export const createCollection = () =\> {  
const groupChannelFilter: GroupChannelFilter = new GroupChannelFilter();  
groupChannelFilter.includeEmpty = true; // Group channels with no members will be included.  
groupChannelFilter.includeFrozen = true; // Group channels with no members will be included.

const params: GroupChannelCollectionParams = {  
filter: groupChannelFilter,  
order: GroupChannelListOrder.LATEST\_LAST\_MESSAGE,  
limit: 3,  
};

const collection: GroupChannelCollection = sb.groupChannel.createGroupChannelCollection(params);  
return collection;  
};

const collection = createCollection();

**[Frequency]**  
always

**[Current impact]**
