useSubForm
Overview
Creates a child form context that delegates submission and loading state to a parent form context, scoped to an optional path prefix.
Signature
useSubForm(options)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| options | object | yes | Options for the subform. |
options Properties
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| parentPath | string | Ref | The path to the parent form. |
Returns
- The sub form context for the subform.
Source
client/lib/use/useSubForm.js:18