Skip to content

Commit c1a78d2

Browse files
committed
fix: properly resolve loadingChannels
1 parent 44c4cba commit c1a78d2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,7 @@ export const usePaginatedChannels = <
296296
// ? true
297297
// : (activeQueryType.current === 'reload' || activeQueryType.current === null) &&
298298
// channels === null,
299-
loadingChannels:
300-
activeQueryType.current === 'queryLocalDB' || !channelManager
301-
? true
302-
: pagination?.isLoading || channels == null,
299+
loadingChannels: activeQueryType.current === 'queryLocalDB' ? true : pagination?.isLoading,
303300
loadingNextPage: pagination?.isLoadingNext,
304301
loadNextPage: channelManager?.loadNext,
305302
refreshing: activeQueryType.current === 'refresh',

0 commit comments

Comments
 (0)