---
url: "https://vueda.dev/v3/reference/api/js/use/useViewUpdate/functions/useViewUpdate.md"
title: "useViewUpdate"
---

# useViewUpdate

## Overview

Extracts all reactive state and wiring for an update view of a single model instance.
The caller owns the template; this composable owns object fetching, form context setup,
action availability, error combination, and submission handling.

Pass the component's `props` directly as `options`. After calling this composable, provide
`formContext` under `FormContextSymbol` so that nested field components can inject it.

## Signature

`useViewUpdate(options)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-options">options</span> | [ViewUpdateOptions](/v3/reference/api/js/use/useViewUpdate/types/ViewUpdateOptions.md) | yes |  |

### Returns

[ViewUpdateContext](/v3/reference/api/js/use/useViewUpdate/types/ViewUpdateContext.md)

## Source

`client/lib/use/useViewUpdate.js:92`
