Angaben zum Datum
Datum aus der Quelle.
Erstmals gesehen am .
Inertia v3: Optimistic Updates
Über die verkettbare Methode .optimistic() werden UI-Änderungen sofort vor der Serverbestätigung angewendet und bei fehlgeschlagenen Requests automatisch zurückgesetzt, auch bei router, <Form>, useForm und useHttp.
UI updates now apply immediately before server confirmation via a chainable .optimistic() method. Your callback receives current props and returns the optimistic values, which are applied instantly. When the server responds, real data takes over seamlessly — and if the request fails, changes auto-revert. Multiple concurrent optimistic updates are tracked independently, and the feature works across router visits, <Form>, useForm, and useHttp.