Function passed as parameter to custom hooks is not taking new value of variables

后端 未结 0 1843
孤城傲影
孤城傲影 2020-12-23 13:35

I use below custom hook for listening to window unload event.

import { useRef, useEffect } from \'react\';

const useUnload = fn => {
    
    const cb = u         


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