How to paginate group channels
I have my application that works, and now i just want to paginate with the limit i set, if that is possible. I set the limit params e.g.(10) and when i load more i want 10 more channels …
V4
[Reproduction Steps]
const queryParams = {
includeEmpty: false,
limit: 10,
userIdsIncludeFilter: [userId.value],
order: ‘chronological’,
}
const query = sb.groupChannel.createGroupChannelCollection(queryParams);
if (query.hasMore) {
const channels = await query.loadMore();
console.log(channels)
}