Repository navigation
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 <[email protected]>
|
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. |
The live version signal carries the fetch stamp; an equal write is a no-op, so a sweep landing before the clock ticked past the mount left the surviving layout's consumer untold and painting stale. This was the coin toss behind the redirect-revalidate tests (solidjs#580, solidjs#608, solidjs#606) failing under load: mount and redirect within one ms. The sweep now always changes the version; regression test freezes the clock so the same-ms case is the only case. Co-authored-by: Cursor <[email protected]>
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.