Uncaught TypeError: Cannot destructure property ‘hospSetList‘ of ‘(0 , _store_modules_hosp__WEBPACK_

Uncaught TypeError: Cannot destructure property 'hospSetList' of '(0 , _store_modules_hosp__WEBPACK_IMPORTED_MODULE_6__.useSelectorHosp)(...)' as it is undefined。
会导致页面加载出现一瞬间后造成页面崩溃白屏

问题所在:const{hospSetList}=useSelectorHosp();替换成const hospSetList=useSelectorHosp();

你可能感兴趣的:(前端,webpack)