Skip to content
New issue

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

Moving store and history subscription back to constructor #227

Merged
merged 2 commits into from
Jan 6, 2019

Conversation

supasate
Copy link
Owner

@supasate supasate commented Jan 5, 2019

In #217, we move store and history subscription and the first onLocationChange call from constructor to componentDidMount. However, react-router subscribes history in componentWillMount (in 4.3.1) and constructor (in 4.4.0-beta). So, ConnectedRouter needs to subscribe to the store and history before react-router.

@supasate supasate changed the title Moving store subscription back to constructor Moving store and history subscription back to constructor Jan 5, 2019
@supasate supasate merged commit 9231133 into master Jan 6, 2019
@supasate supasate deleted the fix-didmount branch January 6, 2019 01:00
pmarfany added a commit to lluistfc/connected-react-router that referenced this pull request May 6, 2019
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