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

   ### Problem\n\nThe LiteTopic TTL dialog relies on extendTTLLoading to 
disable its confirmation button. React state is not synchronous, so two 
confirmation events delivered in the same render invoke extendLiteTopicTTL 
twice. TTL extension is a write operation, and the duplicate request can apply 
the extension more than once depending on provider semantics.\n\n### 
Reproduction\n\n1. Open a LiteTopic row and choose Extend TTL.\n2. Enter a 
TTL.\n3. Dispatch two confirmation clicks before the first API promise 
resolves.\n4. Observe two extendLiteTopicTTL calls.\n\nA focused LiteTopic 
component test reproduces this with a deferred promise.\n\n### Expected 
behavior\n\nAcquire a synchronous in-flight guard before issuing the extension 
and release it after completion.\n\n### Scope\n\nThe LiteTopic TTL mutation and 
its component regression 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