The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update links-list.tsx
Kiran K8a688d33a3d1
diff --git a/apps/web/app/app.dub.co/embed/referrals/links-list.tsx b/apps/web/app/app.dub.co/embed/referrals/links-list.tsxindex 4045e4938a..46af248663 100644--- a/apps/web/app/app.dub.co/embed/referrals/links-list.tsx+++ b/apps/web/app/app.dub.co/embed/referrals/links-list.tsx@@ -21,9 +21,12 @@ export function ReferralsEmbedLinksList({}: Props) {const [partnerLinks, setPartnerLinks] = useState<ReferralsEmbedLink[]>(links);- const { data: refreshedLinks } = useSWR<ReferralsEmbedLink[]>(+ const { data: refreshedLinks, isLoading } = useSWR<ReferralsEmbedLink[]>("/api/embed/referrals/links",fetcher,+ {+ keepPreviousData: true,+ },);useEffect(() => {@@ -122,6 +125,7 @@ export function ReferralsEmbedLinksList({thClassName: "border-l-0",tdClassName: "border-l-0",resourceName: (plural) => `link${plural ? "s" : ""}`,+ loading: isLoading,});return (