我刚刚开始从单页面应用程序迁移到NextJS。我知道这听起来很奇怪,但当使用persistor时,服务器端呈现不能正常工作,相反,它像客户端呈现一样打印。 whitelist: ['user'], // make sure it does not clash with server keys // <Component {...pageProps} /
我试图为Redux,Saga和ConnectedRouter的React应用程序做SSR。我找到了几个相关的例子,特别是https://github.com/mnsht/cra-ssr和https://github.com/noveogroup-amorgunov/react-ssr-tutorial} from 'connected-react-router';
import createSagaMidd
在我的Next.Js应用程序中,我使用了redux和reduxsaga。我想使用ssr发出http请求:export const getStaticProps = wrapper.getStaticProps(async ({ store }) => { console.log(selector);问题是,当我运行应用程序时,我得到一个错误:Error: could not find react-red