【发布时间】:2019-07-08 03:59:42
【问题描述】:
我正在使用 twilio javascript sdk 进行 twilio-programmable-chat。
我想对我的频道结果应用分页,但我无法弄清楚。
这是我当前的代码。
this.chatClient.getUserChannelDescriptors().then(paginator => {
// All channels are fetched
})
我试图传递一个类似于getMessages(10) 工作方式的pageSize,但没有成功。
this.chatClient.getUserChannelDescriptors(10).then(paginator => {
// The result was same, it fetched all the channels instead of just 10
})
我正在寻找一个如何在频道上进行分页的示例。 谢谢。
【问题讨论】:
-
我在同一条船上。你有没有找到解决方案?正在尝试获取下一页。
-
@user3779015 给你stackoverflow.com/a/57431978/6696353
标签: javascript reactjs twilio twilio-programmable-chat