- Made the
copyToClipboard
function asynchronous and added error handling - Removed
searchTerm
from theuseEffect
dependency array - Added
editorSubscription
to the dependency array of the cleanupuseEffect
- Updated the namespace separator
copyToClipboard
function asynchronous and added error handlingsearchTerm
from the useEffect
dependency arrayeditorSubscription
to the dependency array of the cleanup useEffect