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:129

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