constresetInactivityTimeout=()=>{clearTimeout(timerId.current)timerId.current=setTimeout(()=>{// action after user has been detected idle// add your redux dispatch here**},timeForInactivityInSecond*1000)}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think you could do that in