Calls Action.onSettled on null responses - #580
Conversation
It calls Action.onSettled when response is not a redirect.
|
Void mutations, metadata-only responses, and redirects skipped the settled hooks, so onSubmit state never cleared for actions returning nothing. Every invocation now settles its hooks exactly once; the submissions list still records only outcomes with a result or error. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Fixed on The submissions book-keeping is unchanged and intentional: only outcomes with a result or an error enter the list, so the typical void mutation still leaves nothing behind for you to clear. |
It calls
Action.onSettledon any response is needed to clear states changed byAction.onSubmitor before. Only redirects are excluded.For example, it allows to close form dialogs on action completed.