bbovenzi commented on code in PR #26457:
URL: https://github.com/apache/airflow/pull/26457#discussion_r981452056


##########
airflow/www/static/js/dag/details/taskInstance/index.tsx:
##########
@@ -90,6 +92,8 @@ const TaskInstance = ({
 
   if (!group || !run || !instance) return null;
 
+  const updateTaskInstanceNotesCallable = (newNotes: string) => { 
instance.notes = newNotes; };

Review Comment:
   You can look at the 
[docs](https://react-query-v3.tanstack.com/guides/optimistic-updates) for 
optimistic updates for an example of how to get the query data for a different 
query and then update it. 



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