This PR addresses an issue where Safari throws an Unhandled Promise Rejection: NotAllowedError when attempting to copy a link to the clipboard. This error occurs because Safari requires clipboard operations to be directly triggered by user interactions. Our previous implementation attempted to copy to the clipboard after an asynchronous server action, which Safari does not recognize as a direct user interaction.
This PR addresses an issue where Safari throws an Unhandled Promise Rejection: NotAllowedError when attempting to copy a link to the clipboard. This error occurs because Safari requires clipboard operations to be directly triggered by user interactions. Our previous implementation attempted to copy to the clipboard after an asynchronous server action, which Safari does not recognize as a direct user interaction.