Skip to content

ref(forms): Add customAsyncQueryOptions to BackendJsonSubmitForm#112911

Draft
priscilawebdev wants to merge 1 commit intomasterfrom
priscila/ref/backend-json-form-custom-async
Draft

ref(forms): Add customAsyncQueryOptions to BackendJsonSubmitForm#112911
priscilawebdev wants to merge 1 commit intomasterfrom
priscila/ref/backend-json-form-custom-async

Conversation

@priscilawebdev
Copy link
Copy Markdown
Member

Add an optional customAsyncQueryOptions prop to BackendJsonSubmitForm
that allows consumers to override the built-in async select query options
on a per-field basis.

The built-in async select mechanism sends {field, query, ...dynamicFieldValues}
to the field's url. This doesn't work for endpoints that expect a different
query shape — for example, the Sentry App external-requests endpoint needs
{uri, query, dependentData}.

The new prop is a Record<string, (debouncedInput) => QueryOptions> map. When
provided for a field name, BackendJsonSubmitForm uses the custom query options
factory instead of the default URL-based one. Backward-compatible — no existing
consumers are affected.

This is a prerequisite for migrating SentryAppExternalForm from the legacy
FormModel/FieldFromConfig stack to BackendJsonSubmitForm.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 14, 2026
Allow consumers to override the built-in async select query options
on a per-field basis. This enables use cases where the async endpoint
requires a different query shape than the default buildAsyncSelectQuery,
such as the Sentry App external-requests endpoint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sentry
Copy link
Copy Markdown
Contributor

sentry bot commented Apr 14, 2026

Sentry Snapshot Testing

Name Added Removed Modified Renamed Unchanged Status
sentry-frontend
sentry-frontend
0 0 0 0 204 ✅ Unchanged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant