disable graphql query result caching
This commit is contained in:
@ -34,13 +34,8 @@ export default async function Page({ params }: { params: { slug: string } }) {
|
||||
slug: params.slug,
|
||||
});
|
||||
|
||||
// console.log('data', data)
|
||||
// console.log('error', error)
|
||||
|
||||
const event = (data?.event ?? {}) as EventFragment;
|
||||
|
||||
console.log("event", event);
|
||||
|
||||
return (
|
||||
<main className="site-main" id="main">
|
||||
<section className="page-header">
|
||||
|
@ -5,6 +5,8 @@ const makeClient = () => {
|
||||
return createClient({
|
||||
url: process.env.GRAPHQL_ENDPOINT ?? "",
|
||||
exchanges: [cacheExchange, fetchExchange],
|
||||
// requestPolicy: "network-only",
|
||||
fetchOptions: { cache: "no-store" },
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user