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

Add server rendering example #95

Closed
wants to merge 1 commit into from
Closed

Conversation

stevoland
Copy link

Attempt at: #77

Also updates react-transform-hmr

This also illustrates that issue with putting React elements in the store: #57. You get an error if you try to revert to the initial state.

Also update `react-transform-hmr`
@eriknyk
Copy link

eriknyk commented Oct 13, 2015

Any feedback about this PR?, would be great to get some comments from the authors about this implementation,

Regards.

app.use(webpackHotMiddleware(compiler));

app.use((req, res) => {
const store = reduxReactRouter({ routes })(createStore)(reducer);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use { routes, createHistory: createMemoryHistory } instead of { routes }?

@Scarysize
Copy link
Contributor

Sorry for the late response. If you could update the example to be compliant with the current version, I would be happy to add it into the repo.

@Scarysize
Copy link
Contributor

Needed some updating, but I added it now. Thanks @stevoland for providing the example and @xcatliu for your comments.

@Scarysize Scarysize closed this Dec 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants