Skip to content

Commit cb7d71a

Browse files
authored
fix: prefer error screen over loading screen (#3083)
1 parent a15126f commit cb7d71a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export const usePaginatedChannels = ({
282282
// ready. I do not like providing a way to set the ready state, as it should be managed
283283
// in the LLC entirely. Once we move offline support to the LLC, we can remove this check
284284
// too as it'll be redundant.
285-
pagination?.isLoading || (!channelListInitialized && channels.length === 0),
285+
pagination?.isLoading || (!channelListInitialized && channels.length === 0 && !error),
286286
loadingNextPage: pagination?.isLoadingNext,
287287
loadNextPage: channelManager.loadNext,
288288
refreshing: activeQueryType === 'refresh',

0 commit comments

Comments
 (0)