1. 传入数组的变量需要在使用前进行定义, const [issueType, setIssueType] = useState('1'); const issueDisable = useMemo(() => { console.log('issueType 改变啦', issueType, dataSource, haveDetaildataSource); }, [issueType, dataSource, haveDetaildataSource]);
标签:const,useMemo,hooks,haveDetaildataSource,react,dataSource,issueType From: https://www.cnblogs.com/tdcqcrtd/p/17361935.html