<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Correttojs on Nextjs Templates &amp; Themes</title><link>https://www.nextjsthemes.dev/author/correttojs/</link><description>Recent content in Correttojs on Nextjs Templates &amp; Themes</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://www.nextjsthemes.dev/author/correttojs/index.xml" rel="self" type="application/rss+xml"/><item><title>Graphql Codegen Apollo Next Ssr</title><link>https://www.nextjsthemes.dev/theme/correttojs-graphql-codegen-apollo-next-ssr/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.nextjsthemes.dev/theme/correttojs-graphql-codegen-apollo-next-ssr/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>The introduction of the &lt;code>getServerSideProps&lt;/code> feature in Next.js has brought about some challenges for developers using Apollo for server-side rendering (SSR). Traditional approaches using Higher-Order Components (HOCs) are no longer viable, leading to multiple renderings to fetch all the necessary queries. However, a new solution emerges that allows for more efficient query handling by declaring a top-level query and generating a type-safe version of &lt;code>getServerSideProps&lt;/code>. This approach not only enhances performance but also simplifies the coding pattern for React components.&lt;/p></description></item></channel></rss>