We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我在_app中修改了state的值,用redux浏览器工具查看,值是修改了的,但是在页面getInitialProps中获取到的reduxStore是初始化的值: static async getInitialProps({req,query,query:{id,param},reduxStore}){ console.log(reduxStore.getState()) }
The text was updated successfully, but these errors were encountered:
当页面初次加载时,getInitialProps只会在服务端执行一次; getInitialProps只有在路由切换的时候(如Link组件跳转),客户端的才会被执行。
Sorry, something went wrong.
No branches or pull requests
我在_app中修改了state的值,用redux浏览器工具查看,值是修改了的,但是在页面getInitialProps中获取到的reduxStore是初始化的值:
static async getInitialProps({req,query,query:{id,param},reduxStore}){
console.log(reduxStore.getState())
}
The text was updated successfully, but these errors were encountered: