Skip to content

Commit 274a822

Browse files
committed
fix: prefer error screen over loading screen (#3083)
1 parent 202bd4f commit 274a822

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
@@ -287,7 +287,7 @@ export const usePaginatedChannels = <
287287
// ready. I do not like providing a way to set the ready state, as it should be managed
288288
// in the LLC entirely. Once we move offline support to the LLC, we can remove this check
289289
// too as it'll be redundant.
290-
pagination?.isLoading || (!channelListInitialized && channels.length === 0),
290+
pagination?.isLoading || (!channelListInitialized && channels.length === 0 && !error),
291291
loadingNextPage: pagination?.isLoadingNext,
292292
loadNextPage: channelManager.loadNext,
293293
refreshing: activeQueryType === 'refresh',

0 commit comments

Comments
 (0)