yuluo-yx opened a new issue, #2890:
URL: https://github.com/apache/rocketmq-dashboard/issues/2890

   ### Problem\n\nThe Proxy page uses React loading state to indicate address 
changes, but it has no synchronous mutation guard. Two clicks dispatched before 
React commits the loading state call addProxyAddress twice. Add and remove can 
also overlap, and their request identifiers only suppress stale UI updates; 
they cannot undo both backend writes.\n\n### Reproduction\n\n1. Open Studio > 
Proxy.\n2. Enter a valid Proxy address.\n3. Dispatch two clicks on Add before 
the first request resolves.\n4. Observe two addProxyAddress requests.\n\nA 
focused Proxy page test uses a deferred API promise and deterministically 
reproduces the duplicate submission.\n\n### Expected behavior\n\nAllow only one 
Proxy address mutation at a time and avoid starting a refresh while that 
mutation is pending.\n\n### Scope\n\nThe Proxy page address lifecycle and its 
focused component test only.


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