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,
|
slug: params.slug,
|
||||||
});
|
});
|
||||||
|
|
||||||
// console.log('data', data)
|
|
||||||
// console.log('error', error)
|
|
||||||
|
|
||||||
const event = (data?.event ?? {}) as EventFragment;
|
const event = (data?.event ?? {}) as EventFragment;
|
||||||
|
|
||||||
console.log("event", event);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="site-main" id="main">
|
<main className="site-main" id="main">
|
||||||
<section className="page-header">
|
<section className="page-header">
|
||||||
|
@ -5,6 +5,8 @@ const makeClient = () => {
|
|||||||
return createClient({
|
return createClient({
|
||||||
url: process.env.GRAPHQL_ENDPOINT ?? "",
|
url: process.env.GRAPHQL_ENDPOINT ?? "",
|
||||||
exchanges: [cacheExchange, fetchExchange],
|
exchanges: [cacheExchange, fetchExchange],
|
||||||
|
// requestPolicy: "network-only",
|
||||||
|
fetchOptions: { cache: "no-store" },
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user