Openstatus www.openstatus.dev

Remove prefetch (#894)

* 🐛 cache

* 🐛 cache

authored by

Thibault Le Ouay and committed by
GitHub
1b3ae1b3 f8670b75

+4 -4
-3
apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/(overview)/page.tsx
··· 14 14 15 15 const tb = new OSTinybird({ token: env.TINY_BIRD_API_KEY }); 16 16 17 - export const dynamic = "force-dynamic"; 18 - export const revalidate = 0; 19 - 20 17 /** 21 18 * allowed URL search params 22 19 */
+1
apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/layout.tsx
··· 10 10 11 11 export const revalidate = 0; // revalidate the data at most every hour 12 12 export const dynamic = "force-dynamic"; 13 + export const fetchCache = "force-no-store"; 13 14 14 15 export default async function Layout({ 15 16 children,
+2 -1
apps/web/src/components/data-table/monitor/columns.tsx
··· 100 100 <Link 101 101 href={`./monitors/${row.original.monitor.id}/overview`} 102 102 className="group flex max-w-full items-center gap-2" 103 + prefetch={false} 103 104 > 104 105 <span className="truncate group-hover:underline">{name}</span> 105 106 </Link> ··· 120 121 // REMINDER: if one value is found, return true 121 122 // we could consider restricting it to all the values have to be found 122 123 return value.some((item) => 123 - row.original.tags?.some((tag) => tag.name === item), 124 + row.original.tags?.some((tag) => tag.name === item) 124 125 ); 125 126 }, 126 127 },
+1
apps/web/src/components/layout/header/app-tabs.tsx
··· 19 19 key={title} 20 20 active={active} 21 21 href={`/app/${params?.workspaceSlug}${href}`} 22 + prefetch={false} 22 23 > 23 24 {title} 24 25 </TabsLink>