show spinner when preferences has not loaded yet (#3756)
parent
c33c3b7d1e
commit
db0b030359
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue