Monitoring the return value of a custom hook causes repeated rendering

前端 未结 0 362
说谎
说谎 2020-12-14 14:59
export default () => {
  const { data, reload, loading } = useCardData()

  return React.useMemo(() => {
    if (loading && !data) {
      return 

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