Actions and modern forms

Optimistic rollback

If a failed Action leaves the base unchanged, the temporary prediction disappears when the Action settles.

Formal Syntax & Structure

react syntaxreact
if (response.error) { setError(response.error); return; }

Working Example

Example Snippetreact
if (response.error) { setError(response.error); return; }
React Reference