Browse Source

ref(js): Add note about ApiForm being old AF (#69596)

Evan Purkhiser 10 months ago
parent
commit
3e9042b7fa
1 changed files with 6 additions and 0 deletions
  1. 6 0
      static/app/components/forms/apiForm.tsx

+ 6 - 0
static/app/components/forms/apiForm.tsx

@@ -14,6 +14,12 @@ type Props = FormProps & {
   onSubmit?: (data: Record<string, any>) => any | void;
 };
 
+/**
+ * @deprecated
+ *
+ * DO NOT USE THIS. Prefer using `Form` instead. Form already supports API
+ * requests, this is quite old and should be removed
+ */
 function ApiForm({onSubmit, apiMethod, apiEndpoint, hostOverride, ...otherProps}: Props) {
   const api = useApi();