[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/inertia](../README) / PageObject

# Interface: PageObject

Defined in: [inertia/src/types.ts:10](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L10)

The Inertia "page object" — the serialisable payload that describes a page.

On a first load it is embedded into the HTML shell's `data-page` script; on
subsequent visits it is the JSON response body. The Inertia client reads it to
mount/swap the page component and to drive partial-reload, merge, defer, once, and
history behaviour. Built by buildPageObject; the optional fields are only
present when the corresponding prop feature is in use.

## Properties

### component

> **component**: `string`

Defined in: [inertia/src/types.ts:12](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L12)

Page component name/path (relative to the pages dir, no extension), e.g. `"Users/Index"`.

***

### props

> **props**: `Record`\<`string`, `unknown`\>

Defined in: [inertia/src/types.ts:14](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L14)

The resolved props for the page.

***

### url

> **url**: `string`

Defined in: [inertia/src/types.ts:16](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L16)

The request URL (pathname + query) this page was rendered for.

***

### version

> **version**: `string`

Defined in: [inertia/src/types.ts:18](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L18)

Asset version; a mismatch triggers a full reload so the client picks up new assets.

***

### encryptHistory?

> `optional` **encryptHistory?**: `boolean`

Defined in: [inertia/src/types.ts:20](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L20)

Encrypt this page's history state in the browser (only set when true).

***

### clearHistory?

> `optional` **clearHistory?**: `boolean`

Defined in: [inertia/src/types.ts:22](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L22)

Clear any previously encrypted history state (only set when true).

***

### preserveFragment?

> `optional` **preserveFragment?**: `boolean`

Defined in: [inertia/src/types.ts:24](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L24)

Preserve the URL fragment across a redirect.

***

### mergeProps?

> `optional` **mergeProps?**: `string`[]

Defined in: [inertia/src/types.ts:26](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L26)

Prop keys (or `key.path`) the client should append-merge instead of replacing.

***

### prependProps?

> `optional` **prependProps?**: `string`[]

Defined in: [inertia/src/types.ts:28](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L28)

Prop keys (or `key.path`) the client should prepend-merge.

***

### deepMergeProps?

> `optional` **deepMergeProps?**: `string`[]

Defined in: [inertia/src/types.ts:30](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L30)

Prop keys (or `key.path`) the client should deep-merge.

***

### matchPropsOn?

> `optional` **matchPropsOn?**: `string`[]

Defined in: [inertia/src/types.ts:32](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L32)

`key.path` entries whose last segment is the field used to match items when merging.

***

### scrollProps?

> `optional` **scrollProps?**: `Record`\<`string`, `unknown`\>

Defined in: [inertia/src/types.ts:34](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L34)

Infinite-scroll pagination config, keyed by prop name.

***

### deferredProps?

> `optional` **deferredProps?**: `Record`\<`string`, `string`[]\>

Defined in: [inertia/src/types.ts:36](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L36)

Deferred props grouped by request group; the client fetches them after first render.

***

### rescuedProps?

> `optional` **rescuedProps?**: `string`[]

Defined in: [inertia/src/types.ts:38](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L38)

Deferred prop keys that threw and were rescued server-side.

***

### onceProps?

> `optional` **onceProps?**: `Record`\<`string`, \{ `prop`: `string`; `expiresAt`: `number` \| `null`; \}\>

Defined in: [inertia/src/types.ts:40](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L40)

Once props, keyed by once-key → { prop, expiresAt }.

***

### sharedProps?

> `optional` **sharedProps?**: `string`[]

Defined in: [inertia/src/types.ts:42](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/types.ts#L42)

Top-level shared prop keys, for instant-visit carry-over.
