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

Fix redux example #2274

Merged
merged 1 commit into from
Sep 29, 2017
Merged

Conversation

fabien0102
Copy link
Contributor

Hello!

A really small PR to fix the redux example:

BrowserRouter doesn't provide any history props. We need to use Browser instead.

<BrowserRouter> ignores the history prop. To use a custom history, use import { Router } instead of import { BrowserRouter as Router }.

source: https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/modules/BrowserRouter.js#L24

BrowserRouter doesn't provide any `history` props. We need to use Browser instead.

ref: https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/modules/BrowserRouter.js#L24
@KyleAMathews
Copy link
Contributor

Thanks!

@KyleAMathews KyleAMathews merged commit d51e96f into gatsbyjs:master Sep 29, 2017
@fabien0102 fabien0102 deleted the fix-redux-example branch October 4, 2017 08:15
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.

2 participants