sravani-revuri opened a new pull request, #11943:
URL: https://github.com/apache/ozone/pull/11943

   ## What changes were proposed in this pull request?
   UseApiData triggers executeRequest() from the URL useEffect (initial mount 
and URL changes) and from the retry setTimeout without handling the returned 
promise. On failure, executeRequest already updates state and calls onError, 
but still rejects the promise, which causes unhandled rejections in Vitest and 
in the browser console . Fix by attaching a no-op .catch() to those 
fire-and-forget calls; leave execute / refetch unchanged for callers that await 
and handle errors.
   
   Found here: https://github.com/apache/ozone/pull/11825#discussion_r4421864671
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-17691
   
   ## How was this patch tested?
   
   updated test.
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to