Explorar el Código

chore(dashboard): Disable preload on DetailPageButton

It causes lots of additional requests that don't have any perf benefit
Michael Bromley hace 6 meses
padre
commit
54a3d9e9bc

+ 1 - 1
packages/dashboard/src/lib/components/shared/detail-page-button.tsx

@@ -20,7 +20,7 @@ export function DetailPageButton({
     }
     return (
         <Button asChild variant="ghost" disabled={disabled}>
-            <Link to={href ?? `./${id}`} search={search ?? {}}>
+            <Link to={href ?? `./${id}`} search={search ?? {}} preload={false}>
                 {label}
                 {!disabled && <ChevronRight className="h-3 w-3 text-muted-foreground" />}
             </Link>