Skip to content

Commit 31eeadc

Browse files
committed
fix: broken error state in query backoff
1 parent e771d52 commit 31eeadc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package/src/components/ChannelList/hooks/usePaginatedChannels.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ export const usePaginatedChannels = <
298298
// : (activeQueryType.current === 'reload' || activeQueryType.current === null) &&
299299
// channels === null,
300300
loadingChannels:
301-
activeQueryType.current === 'queryLocalDB' ? true : pagination?.isLoading || !ready,
301+
activeQueryType.current === 'queryLocalDB'
302+
? true
303+
: pagination?.isLoading || (!ready && channels.length === 0),
302304
loadingNextPage: pagination?.isLoadingNext,
303305
loadNextPage: channelManager.loadNext,
304306
ready,

0 commit comments

Comments
 (0)