You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit afdd068
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(mosaic): let controllers own identifier row pending state
usePendingAction gains guard(), which runs a confirmation's confirm under
the section lock, replacing runExternal and the wrapper each section
copied. Section controllers put verify and primary pending flags on the
rows they return, so views no longer compare pending keys. Confirmation
drops the disabled prop, which no reachable state could set.
| An async action from a button or row: pending, an error, one lock |`usePendingAction` (`src/hooks/`) |
37
-
| Direct actions and confirmation dialogs that must exclude each other |Section controller wraps `confirm` with `usePendingAction.runExternal`(`src/hooks/`, `src/blocks/confirm/`) |
37
+
| Direct actions and confirmation dialogs that must exclude each other |`usePendingAction.guard` on the confirmation (`src/hooks/`, `src/blocks/confirm/`)|
38
38
| A form: values, validation, submit, field errors |`useForm` (`src/components/form/`), with `validateAsync` for a server-side check |
39
39
| A `<form>` element, without the browser's validation popup |`Form` (`src/primitives/form/`) |
40
40
| A model save whose Clerk errors should land on form fields |`save` (`src/utils/errors.ts`) in the model, or reject with `FormSubmitError`|
Copy file name to clipboardExpand all lines: packages/mosaic/src/features/user-profile/user-profile-email-section/user-profile-email-section.controller.ts
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -36,20 +36,18 @@ export function useUserProfileEmailSectionController({
Copy file name to clipboardExpand all lines: packages/mosaic/src/features/user-profile/user-profile-phone-section/user-profile-phone-section.controller.ts
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -36,21 +36,20 @@ export function useUserProfilePhoneSectionController({
0 commit comments