[workbench] Improve asynchronous tool use (#30184)
GitOrigin-RevId: d1bd33469b557c29968049af99b9c3c85731151d
This commit is contained in:
@@ -21,7 +21,7 @@ export default function useDetachAction(
|
||||
if (role === senderRole) {
|
||||
broadcastEvent(eventName, { args })
|
||||
} else {
|
||||
actionFunction(...args)
|
||||
return actionFunction(...args)
|
||||
}
|
||||
},
|
||||
[role, senderRole, eventName, actionFunction, broadcastEvent]
|
||||
|
||||
Reference in New Issue
Block a user