docs: Standardize heading levels (#54590)
## What? - Updated the heading structure in the documentation to maintain a consistent hierarchy. - All primary points now use `###` for better readability and understanding of content structure. ## Why? While reviewing the documentation, I noticed that the heading levels were inconsistent between sections 1, 2, and 3-5.
This commit is contained in:
parent
4c3b7f9b7a
commit
d2e4d2c170
1 changed files with 3 additions and 3 deletions
|
@ -184,7 +184,7 @@ This means on navigation, the cache is reused as much as possible, instead of ma
|
|||
|
||||
Learn more about how the [Router Cache](/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#caching-data) works and how to configure it.
|
||||
|
||||
#### 3. Partial Rendering
|
||||
### 3. Partial Rendering
|
||||
|
||||
Partial rendering means only the route segments that change on navigation re-render on the client, and any shared segments are preserved.
|
||||
|
||||
|
@ -200,10 +200,10 @@ For example, when navigating between two sibling routes, `/dashboard/settings` a
|
|||
|
||||
Without partial rendering, each navigation would cause the full page to re-render on the server. Rendering only the segment that changes reduces the amount of data transferred and execution time, leading to improved performance.
|
||||
|
||||
#### 4. Soft Navigation
|
||||
### 4. Soft Navigation
|
||||
|
||||
By default, the browser performs a hard navigation between pages. This means the browser reloads the page and resets React state such as `useState` hooks in your app and browser state such as the user's scroll position or focused element. However, in Next.js, the App Router uses soft navigation. This means React only renders the segments that have changed while preserving React and browser state, and there is no full page reload.
|
||||
|
||||
#### 5. Back and Forward Navigation
|
||||
### 5. Back and Forward Navigation
|
||||
|
||||
By default, Next.js will maintain the scroll position for backwards and forwards navigation, and re-use route segments in the [Router Cache](/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#caching-data).
|
||||
|
|
Loading…
Reference in a new issue