这是我在其中一个测试中得到的错误信息 at toTree (node_modules\enzyme-adapter-react-16.3\build\ReactSixteenThreeAdapter.js:225:13)
at Array.map (<anonymous>)\enzyme-adapter-react-16.3\build\ReactSixteenThreeAdapter.j
为此,我必须在useCallack的回调函数中调用Array.mapexport const useSafeDispatches = (...dispatches) => { );当我试图构建React Hook "useCallback" cannot be called insideReact Hooks must be called in a React fun
这甚至给了我一个错误。思考从哪里开始?xxxxx (硕士)⠇ Running diagnostics...error Reduce of empty array with no initial/cli-doctor/build/commands/doctor.js:145:29 at iterateOverHealthChecks(/Users/x