Skip to content

Commit

Permalink
Remove prefetch (#894)
Browse files Browse the repository at this point in the history
* 🐛 cache

* 🐛 cache
  • Loading branch information
thibaultleouay authored Jun 25, 2024
1 parent f8670b7 commit 1b3ae1b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ import { api } from "@/trpc/server";

const tb = new OSTinybird({ token: env.TINY_BIRD_API_KEY });

export const dynamic = "force-dynamic";
export const revalidate = 0;

/**
* allowed URL search params
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { api } from "@/trpc/server";

export const revalidate = 0; // revalidate the data at most every hour
export const dynamic = "force-dynamic";
export const fetchCache = "force-no-store";

export default async function Layout({
children,
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/components/data-table/monitor/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const columns: ColumnDef<{
<Link
href={`./monitors/${row.original.monitor.id}/overview`}
className="group flex max-w-full items-center gap-2"
prefetch={false}
>
<span className="truncate group-hover:underline">{name}</span>
</Link>
Expand All @@ -120,7 +121,7 @@ export const columns: ColumnDef<{
// REMINDER: if one value is found, return true
// we could consider restricting it to all the values have to be found
return value.some((item) =>
row.original.tags?.some((tag) => tag.name === item),
row.original.tags?.some((tag) => tag.name === item)
);
},
},
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/components/layout/header/app-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export function AppTabs() {
key={title}
active={active}
href={`/app/${params?.workspaceSlug}${href}`}
prefetch={false}
>
{title}
</TabsLink>
Expand Down

0 comments on commit 1b3ae1b

Please sign in to comment.