Skip to content

Update getInitialProps.js - #10

Open
ajzeng wants to merge 1 commit into
dacejs:masterfrom
ajzeng:master
Open

Update getInitialProps.js#10
ajzeng wants to merge 1 commit into
dacejs:masterfrom
ajzeng:master

Conversation

@ajzeng

@ajzeng ajzeng commented May 29, 2020

Copy link
Copy Markdown

在componentDidMount中injectReducer时候,子组件的didMount是早于父组件执行的,所以子
组件里面想dispatch一些action的时候,由于自定义的reducer还没有inject导致无法生效,这里将inject放
在willMount中可以解决问题

fix: 在componentDidMount中injectReducer时候,子组件的didMount是早于父组件执行的,所以子
组件里面想dispatch一些action的时候,由于自定义的reducer还没有inject导致无法生效,这里将inject放
在willMount中可以解决问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant