Tag: nextjs13
-
Undefined return value from getStaticProps
0 The value being returned from my getStaticProps in nextjs is undefined. I tried fetching data from a graphql endpoint and the return value was undefined when I console.log the value. This is the code block const graphQuery = new GraphQLClient(url); export const getStaticProps = async () => { const { course } = await…
-
Refetch queries server side after a client side mutation apollo client
0 I’m using the experimental version of graphql and apollo client together with next13 and at one point in my code I perform a mutation in a client side component to delete data and I need the query that was performed in a server side component to be re-done for the list of results to…