show spinner when preferences has not loaded yet (#3756)

zio/stable
Hailey 2024-05-06 12:58:03 -07:00 committed by GitHub
parent c33c3b7d1e
commit db0b030359
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -371,11 +371,11 @@ export function PostThread({
], ],
) )
if (error || !thread) { if (!thread || !preferences || error) {
return ( return (
<ListMaybePlaceholder <ListMaybePlaceholder
isLoading={(!preferences || !thread) && !error} isLoading={!error}
isError={!!error} isError={Boolean(error)}
noEmpty noEmpty
onRetry={refetch} onRetry={refetch}
errorTitle={error?.title} errorTitle={error?.title}