I have a react application this with some setTimeOut's inside. And after each save HMR react and refreshes the application, but timeouts still going and executing their code.
So question is, do we have some hook (like beforeRefresh), so that I can cleanup timers in it.
I have a react application this with some setTimeOut's inside. And after each save HMR react and refreshes the application, but timeouts still going and executing their code.
So question is, do we have some hook (like beforeRefresh), so that I can cleanup timers in it.