Why can't `useCallback` always return the same ref

后端 未结 0 1139
感动是毒
感动是毒 2021-01-26 01:39

I don\'t understand why useCallback always returns a new ref each time one of the deps is updated. It results in many re-render that React.memo() could

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