> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# next-client-fetched-page-content

> A public Next.js page fetches the content it renders inside useEffect, so the server HTML lacks it.

## What it flags

The default-exported component of a Next.js page (an App Router `page` marked `'use client'`, or a Pages Router page with no `getStaticProps`, `getServerSideProps` or `getInitialProps`) calls the global `fetch` (a GET: no `method`, or a literal `'GET'`) inside a React `useEffect` and, inside that fetch's `.then`/`.catch`/`.finally` callbacks or after its `await` in the same function, stores a non-literal value in `useState` state that its JSX renders. The server HTML therefore holds none of that content: crawlers that do not run JavaScript, link previews and Google's first indexing pass see an empty page, and users wait for an extra round trip. Effects that only set flags such as `setLoading(false)`, setters called from a `catch` block or `.catch` callback (an error message), state named for a credential such as `hmacSession` or `csrfToken`, and routes under signed-in or transactional segments such as `dashboard`, `account`, `settings`, `admin`, `login` or `checkout`, are skipped. The finding appears with `--include-contextual`, because content that does not need indexing can stay client-side.

## How to review or fix

Fetch the content on the server: make the page an async Server Component and move the interactive part into a client child, or use `getStaticProps` or `getServerSideProps` in the Pages Router. See the [Next.js data fetching guide](https://nextjs.org/docs/app/getting-started/fetching-data).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.