mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 01:04:34 +03:00
Fix ESLint react-hooks/exhaustive-deps
This commit is contained in:
parent
cb7880d3a6
commit
3c93913bb9
|
@ -20,7 +20,7 @@ export default function CopyInput({ text, prefix }) {
|
|||
|
||||
useEffect(() => {
|
||||
setSupportsCopy(isClient && document.queryCommandSupported('copy'))
|
||||
}, [])
|
||||
}, [isClient])
|
||||
const textareaRef = useRef()
|
||||
const [copySuccess, setCopySuccess] = useState(false)
|
||||
const onClick = () => copyToClipboard(textareaRef, setCopySuccess)
|
||||
|
|
Loading…
Reference in New Issue
Block a user