This section provides an overview of how to implement server-side rendering (SSR) in a Next.js application using Apollo Client to fetch and display CMS data.
Server-side rendering (SSR) is particularly useful when you want to ensure that your application has the following characteristics:
⚠️ In other words you should use SSR on all page.tsx files that are not marked with
"use client"directive.
To implement SSR, you typically:
Queries
This section provides an overview of how to query and mutate data in the Erxes CMS using Apollo Client in a Next.js application.
CSR Fetching
This section explains the principles and benefits of client-side rendering in web applications.