how to detect a page refresh in react to perform function?

前端 未结 0 1436
青春惊慌失措
青春惊慌失措 2020-12-03 10:47

I would like to detect a refresh page (f5 or the refresh button in the browser) in react in order to perform function. Basically i would like to call an API when the refresh

相关标签:
回答
  • 消灭零回复
提交回复
热议问题