Skip to content

useViewCreate ​

Overview ​

Extracts all reactive state and wiring for a create view of a model instance. The caller owns the template; this composable owns initial value derivation, form context setup, action availability, error combination, and submission handling.

Pass the component's props directly as options.

Signature ​

useViewCreate(options)

Parameters ​

NameTypeRequiredDescription
optionsViewCreateOptionsyes

Returns ​

ViewCreateContext

Source ​

client/lib/use/useViewCreate.js:139