useCallback with dependency vs using a ref to call the last version of the function

后端 未结 0 1771
后悔当初
后悔当初 2021-01-21 01:58

While doing a code review, I came across this custom hook:

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

export         


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