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 e771d52 commit 31eeadcCopy full SHA for 31eeadc
package/src/components/ChannelList/hooks/usePaginatedChannels.ts
@@ -298,7 +298,9 @@ export const usePaginatedChannels = <
298
// : (activeQueryType.current === 'reload' || activeQueryType.current === null) &&
299
// channels === null,
300
loadingChannels:
301
- activeQueryType.current === 'queryLocalDB' ? true : pagination?.isLoading || !ready,
+ activeQueryType.current === 'queryLocalDB'
302
+ ? true
303
+ : pagination?.isLoading || (!ready && channels.length === 0),
304
loadingNextPage: pagination?.isLoadingNext,
305
loadNextPage: channelManager.loadNext,
306
ready,
0 commit comments