|
12 | 12 | ### Deferred Props & Empty States |
13 | 13 | - When using deferred props on the frontend, you should add a nice empty state with pulsing / animated skeleton. |
14 | 14 |
|
15 | | -## Inertia Forms Core |
16 | | -@if($assist->inertia()->hasFormComponent()) |
17 | | -- The recommended way to build forms when using Inertia is with the `<Form>` component, a useful example is below. Use `search-docs` with the `form component` query for guidance. |
18 | | -- Forms can also be built using the `useForm` helper for more programmatic control, or to follow existing conventions. Use `search-docs` with the `useForm helper` query for guidance. |
19 | | -@if($assist->inertia()->hasFormComponentResets()) |
20 | | -- `resetOnError`, `resetOnSuccess`, and `setDefaultsOnSuccess` are available on the `<Form>` component. Use `search-docs` with 'form component resetting' for explicit guidance. |
| 15 | +### Inertia Form General Guidance |
| 16 | +@if ($assist->inertia()->hasFormComponent()) |
| 17 | +- The recommended way to build forms when using Inertia is with the `<Form>` component - a useful example is below. Use `search-docs` with a query of `form component` for guidance. |
| 18 | +- Forms can also be built using the `useForm` helper for more programmatic control, or to follow existing conventions. Use `search-docs` with a query of `useForm helper` for guidance. |
| 19 | +@if ($assist->inertia()->hasFormComponentResets()) |
| 20 | +- `resetOnError`, `resetOnSuccess`, and `setDefaultsOnSuccess` are available on the `<Form>` component. Use `search-docs` with a query of 'form component resetting' for guidance. |
21 | 21 | @else |
22 | | -- This version of Inertia does NOT support `resetOnError`, `resetOnSuccess`, or `setDefaultsOnSuccess` on the `<Form>` component. Using these will cause errors. |
| 22 | +- This version of Inertia does not support `resetOnError`, `resetOnSuccess`, or `setDefaultsOnSuccess` on the `<Form>` component. Using these will cause errors. |
23 | 23 | @endif |
24 | 24 | @else |
25 | | -- Build forms using the `useForm` helper. Use the code examples and `search-docs` tool with the `useForm helper` query for guidance. |
| 25 | +- Build forms using the `useForm` helper. Use the code examples and `search-docs` tool with a query of `useForm helper` for guidance. |
26 | 26 | @endif |
0 commit comments