VK
Size: a a a
VK
IN
K(
SM
VK
SM
SM
SM
A
SM
SM
A
SM
O
VK
DS
SM
V
const timeout = useRef(null)
useEffect(() => {
timeout.current = startTimeout()
}, [])
useEffect(() => {
clearTimeout(timeout.current)
timeout.current = startTimeout()
}, [notifications.length])
const startTimeout = () => {
return setTimeout(() => setOpen(false), 3000)
}SM