Skip to content

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

NameTypeRequiredDescription
optionsViewUpdateOptionsyes

Returns

ViewUpdateContext

Source

client/lib/use/useViewUpdate.js:82

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2