bbovenzi commented on code in PR #55558:
URL: https://github.com/apache/airflow/pull/55558#discussion_r2350022943
##########
airflow-core/src/airflow/ui/src/pages/Connections/ConnectionForm.tsx:
##########
@@ -74,14 +74,21 @@ const ConnectionForm = ({
const paramsDic = { paramsDict:
connectionTypeMeta[selectedConnType]?.extra_fields ?? ({} as ParamsSpec) };
const [formErrors, setFormErrors] = useState(false);
+ const [isExtraFieldsDirty, setIsExtraFieldsDirty] = useState(false);
+ const [initialExtra, setInitialExtra] = useState("");
Review Comment:
Are you sure we need new useStates that are updated via useEffects?
We already have an `initialConnection` object that we should compare against
the `conf: extra`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]