From fd6ce4d1ad6e2b85ec581d264094dbc709e7010a Mon Sep 17 00:00:00 2001 From: Manuel Ruck Date: Sun, 22 Sep 2024 14:09:28 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20disable=20cache=20for=20p?= =?UTF-8?q?rocedure=20lists?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Ruck --- bundestag.io/admin/src/app/list/past/page.tsx | 2 ++ bundestag.io/admin/src/app/list/upcoming/page.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bundestag.io/admin/src/app/list/past/page.tsx b/bundestag.io/admin/src/app/list/past/page.tsx index 00184c75..61d7240c 100644 --- a/bundestag.io/admin/src/app/list/past/page.tsx +++ b/bundestag.io/admin/src/app/list/past/page.tsx @@ -1,9 +1,11 @@ import Entry from '../_components/entry'; import { IProcedure } from '@democracy-deutschland/bundestagio-common'; +import { unstable_noStore as noStore } from 'next/cache'; export const dynamic = 'force-dynamic'; export default async function Page() { + noStore(); const data = await getData(); return ( <> diff --git a/bundestag.io/admin/src/app/list/upcoming/page.tsx b/bundestag.io/admin/src/app/list/upcoming/page.tsx index 5f9b6a03..f2869bc9 100644 --- a/bundestag.io/admin/src/app/list/upcoming/page.tsx +++ b/bundestag.io/admin/src/app/list/upcoming/page.tsx @@ -1,9 +1,11 @@ import Entry from '../_components/entry'; import { IProcedure } from '@democracy-deutschland/bundestagio-common'; +import { unstable_noStore as noStore } from 'next/cache'; export const dynamic = 'force-dynamic'; export default async function Page() { + noStore(); const data = await getData(); return ( <>