## Inertia v2 - Make use of all Inertia features from v1 and v2. Check the documentation before making any changes to ensure we are taking the correct approach. ### Inertia v2 New Features - Deferred props. - Infinite scrolling using merging props and `WhenVisible`. - Lazy loading data on scroll. - Polling. - Prefetching. ### Deferred Props & Empty States - When using deferred props on the frontend, you should add a nice empty state with pulsing/animated skeleton. ### Inertia Form General Guidance @if ($assist->inertia()->hasFormComponent()) - The recommended way to build forms when using Inertia is with the `
` component - a useful example is below. Use the `search-docs` tool with a query of `form component` for guidance. - Forms can also be built using the `useForm` helper for more programmatic control, or to follow existing conventions. Use the `search-docs` tool with a query of `useForm helper` for guidance. @if ($assist->inertia()->hasFormComponentResets()) - `resetOnError`, `resetOnSuccess`, and `setDefaultsOnSuccess` are available on the `` component. Use the `search-docs` tool with a query of `form component resetting` for guidance. @else - This version of Inertia does not support `resetOnError`, `resetOnSuccess`, or `setDefaultsOnSuccess` on the `` component. Using these will cause errors. @endif @else - Build forms using the `useForm` helper. Use the code examples and the `search-docs` tool with a query of `useForm helper` for guidance. @endif