We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 681a268 commit 8a688d3Copy full SHA for 8a688d3
apps/web/app/app.dub.co/embed/referrals/links-list.tsx
@@ -21,9 +21,12 @@ export function ReferralsEmbedLinksList({
21
}: Props) {
22
const [partnerLinks, setPartnerLinks] = useState<ReferralsEmbedLink[]>(links);
23
24
- const { data: refreshedLinks } = useSWR<ReferralsEmbedLink[]>(
+ const { data: refreshedLinks, isLoading } = useSWR<ReferralsEmbedLink[]>(
25
"/api/embed/referrals/links",
26
fetcher,
27
+ {
28
+ keepPreviousData: true,
29
+ },
30
);
31
32
useEffect(() => {
@@ -122,6 +125,7 @@ export function ReferralsEmbedLinksList({
122
125
thClassName: "border-l-0",
123
126
tdClassName: "border-l-0",
124
127
resourceName: (plural) => `link${plural ? "s" : ""}`,
128
+ loading: isLoading,
129
});
130
131
return (
0 commit comments