[RFC] modal.confirm support promise #43295
zombieJ
announced in
RFCs - archive
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
📋 RFC
Summary
modal.confirm provide promise like interface to support
await
Basic example
Motivation
In most case,
modal.confirm
followed with async operation. It's not easy to do so inonOk
function.Detailed
confirm
return instance givethen
api which will proxy to promise usage:Drawbacks
Not be the Promise instance for the first return.
Adoption strategy
Provided in feature branch.
Beta Was this translation helpful? Give feedback.
All reactions