## persistScroll · function

Restore and store the vertical and horizontal scroll position for
the parent element to the page state.

**Signature:** `(name?: string) => void`

**Parameters:**

- `name: any` (optional) - - A unique (within this page) name for this
scrollable element. Defaults to 'main'.

The scroll position will be persisted in `route.aux.scroll.<name>`.
