我正在使用Redux中的useSelector(state => state.SLICE_NAME)钩子,但是在定义state参数时遇到了困难。默认情况下,它被设置为unknown,因此当我试图返回state.SLICE_NAME (Error: Object is of type 'unknown')时会得到一个错误。} from "redux-starter-kit";
import reducer from ".return <div>Text<
如果我已经在我的next.js应用程序中使用next-auth,我可以在_app.js中添加redux吗?我尝试的是这样的: import React from "react"import {Provider as ReduxProvider} from 'react-redux';
import {configureStore} from