pierrejeambrun commented on code in PR #54163:
URL: https://github.com/apache/airflow/pull/54163#discussion_r2261081141


##########
airflow-core/src/airflow/ui/src/pages/Run/Header.tsx:
##########
@@ -43,6 +43,10 @@ export const Header = ({
   const { t: translate } = useTranslation();
   const [note, setNote] = useState<string | null>(dagRun.note);
 
+  useEffect(() => {
+    setNote(dagRun.note);
+  }, [dagRun.note]);
+

Review Comment:
   I see, maybe we need to find a way to not do this, usually we try to avoid 
useEffect as much as possible.



-- 
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]

Reply via email to