app: handle form fetch failures without unhandled rejection
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Controller Tests / controller-tests (push) Has been cancelled
Jest Tests / jest-tests (push) Has been cancelled

Catch useForm fetcher errors and surface them so DomainEditPage can show a not-found message instead of hanging on the loader (and so the webpack overlay no longer flakes Cypress).
This commit is contained in:
Roland 2026-07-16 19:40:28 -06:00
parent f5615440e5
commit 0850b6a7fe
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
5 changed files with 104 additions and 10 deletions

View file

@ -245,6 +245,7 @@ export function createTestForm(initialData = {}, config = {}) {
loading: false,
disabled: false,
dirty: false,
error: null,
errors: {},
// Methods that update formData directly
patchFormData: jest.fn((updates) => {