diff --git a/src/app/Source.tsx b/src/app/Source.tsx index 1220d92..3450de0 100644 --- a/src/app/Source.tsx +++ b/src/app/Source.tsx @@ -23,7 +23,7 @@ const Source = ({ actions, config }: Props) => { const sourceUrl = useMemo(() => sourceUrlFromConfig(config, location), [config, location]); - const { data, error } = useSWR(sourceUrl, sourceFetcher); + const { data, error, isLoading } = useSWR(sourceUrl, sourceFetcher); return (
{ ) : null} {config.name}{" "} - ({data?.items.length ?? 0}) + + {isLoading ? : `(${data?.items.length ?? 0})`} + {error ? ( <> {" "}