Arbaaz123676 opened a new pull request, #62798:
URL: https://github.com/apache/airflow/pull/62798

   ## Summary
   
   This PR fixes an issue where the XCom value was not displayed when reopening 
the edit modal after updating it.
   
   ## Root Cause
   
   The modal lifecycle and query behavior caused stale or skipped state updates 
when reopening the modal, leading to an empty value field.
   
   ## Changes
   
   - Removed `lazyMount` from the dialog to ensure proper unmount/remount 
behavior.
   - Enabled refetch on mount for the XCom entry query.
   - Adjusted the population effect to rely on `data` instead of `data?.value 
!== undefined`.
   - Ensured query invalidation for both `GetXcomEntries` and `GetXcomEntry` 
after update.
   
   ## Result
   
   The XCom edit modal now consistently repopulates the latest value when 
reopened.


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