Pagination of group channels

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 …


[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();

solved by moving query params outside method