We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4561a0 commit 079a363Copy full SHA for 079a363
packages/uikit-chat-hooks/src/common/useUserList.ts
@@ -119,7 +119,7 @@ export const useUserList = <
119
});
120
121
const next = useFreshCallback(async () => {
122
- if (query.current && query.current?.hasNext) {
+ if (query.current && query.current?.hasNext && !query.current.isLoading) {
123
const nextUsers = await query.current.next().catch((e) => {
124
Logger.error(e);
125
if (e.code === SBErrorCode.UNAUTHORIZED_REQUEST) Logger.warn(SBErrorMessage.ACL);
0 commit comments