来源:https://stackoverflow.com/questions/57263525/useeffect-not-being-called-and-not-updating-state-when-api-is-fetched 标签 reactjs react-hooks use-effect