You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Considering a reasonable amount of people want to perform asynchronous operations before a clipboard action, I think adding Promise support to the text option would be nice.
For example, you may want to call an API when clicking a button and use its response data as the value to be copied.
As far as I could explore the code, it doesn't seem to be such a big change to allow both a function or a promise to be passed as an argument.
What do you think @zenorocha ? I could start working on a PR if that feels right.
The text was updated successfully, but these errors were encountered:
Considering a reasonable amount of people want to perform asynchronous operations before a clipboard action, I think adding Promise support to the
text
option would be nice.For example, you may want to call an API when clicking a button and use its response data as the value to be copied.
As far as I could explore the code, it doesn't seem to be such a big change to allow both a function or a promise to be passed as an argument.
What do you think @zenorocha ? I could start working on a PR if that feels right.
The text was updated successfully, but these errors were encountered: