Open kendrickw opened 4 months ago
The copyToClipboard function is not returning a promise after copying text, see:
copyToClipboard
export default function App() { const [copiedText, copyToClipboard] = useCopyToClipboard(); return ( <button onClick={() => { copyToClipboard('text').then(() => { console.log('never gets here'); }); }} > copy </button> ); }
The
copyToClipboard
function is not returning a promise after copying text, see: