Skip to content

Commit

Permalink
docs: polish
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Feb 15, 2025
1 parent 24ae3ab commit ba0eded
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/pages/pageContext/+Page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,17 @@ import type {

## Lifecycle

**Server**
### Server

On the server-side, upon an HTTP request, a new `pageContext` object is created. It's used for rendering the page to HTML. The `pageContext` object is discarded after the HTTP response is sent.

**Client**
### Client

Upon <Link text="client-side page navigation" href="/client-routing" />, a new `pageContext` object is created.

> You can use `pageContext.previousPageContext` to access the `pageContext` of the previous page.
**Pre-rendering**
### Pre-rendering

If a page is <Link href="/pre-rendering">pre-rendered</Link>, its <Link href="/pageContext.json">initial `pageContext` value</Link> is determined at build-time and saved at `dist/client/${url}/index.pageContext.json`.

Expand Down

0 comments on commit ba0eded

Please sign in to comment.