diff --git a/src/app/List.tsx b/src/app/List.tsx index 7c5f047..2617c20 100644 --- a/src/app/List.tsx +++ b/src/app/List.tsx @@ -62,7 +62,10 @@ const List = ({ }; }, [exclude, include, itemSelector, titleSelector, url, linkSelector]); - const { data, error, isLoading, isValidating } = useSWR(requestUrl, fetcher); + const { data, error, isLoading } = useSWR(requestUrl, fetcher, { + keepPreviousData: true, + refreshInterval: 1000 * 60 * 5, + }); return (
} > - {isValidating ? ( -

Validating…

- ) : isLoading ? ( + {isLoading ? (

Loading…

) : error ? (

Error: {error.message}