catamphetamine / webpack-react-redux-server-side-render-example

A sample React/Redux/Webpack project with Server-Side Rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Would React-hot-loader 3.0 be easy to upgrade to?

adailey14 opened this issue · comments

Hey Halt-hammerzeit,

Have you tried out react-hot-loader 3.0 yet? (I have not). Gaearon says it fixes a lot of the issues in the previous hot reloading libraries he had put together. It's still in a beta phase.

A few references:
gaearon/react-hot-loader#240
gaearon/react-hot-boilerplate#61

I may experiment with it myself if I have time, but I bet you would have a better idea how to do it. I honestly don't really understand how any of the hot reloading stuff works or is configured.

I've been reading about react-hot-loader 3.0 since posting this. I think it's not quite ready yet. Also I saw you made some comments in that project so you're aware of it. I will close this!

Yeah, I tried to switch to the new loader the first day it was announced but obviously that was too optimistic and the new loader had lots of issues from the start.
I then realised that it needs a lot of debugging before it becomes usable in my use case (server-side rendering, etc).
It's still in beta.
When it's finally released I guess I'll go and switch to it.

I was able to implement the beta 6 in my project and can provide the config if needed. Works fine for me

@NSLS
You're welcome.
Fork the repo and create a Pull Request.
Before submitting verify that:

  • React components hot reload
  • Redux reducers hot reload
  • Redux actions aren't hot reloaded currently, but if they do that would be an extra plus

@NSLS Or, if you're busy with other things, you could just provide a config and someone else could implement it in a Pull Request

I've pulled the repo, but after looking at the config and realising that I don't remember anything from what I've done to move it to the react hot loader 3, since I took this project as a base and made too many changes and I don't have the time to think it all up again. So I'm going to publish my own boilerplate with all the changes I've got and obviously the newest hot loader and then anyone can look at how it's done and how it can be implemented.

I will leave a link to the repo here as soon as I will publish it.

@NSLS fair enough

@adailey14
I've successfully composed myself and posted a boilerplate for anyone, who finds this repo to be somewhat complicated and confusing.
You can now see, how I've been able to implement react-hot-loader@3 here

@NSLS Ну смотри, теперь на тебе ответственность за работоспособное состояние твоего бойлерплейта, ибо я включил его в документацию
catamphetamine/universal-webpack@1566e59

@halt-hammerzeit Affirmative

@adailey14 FYI, upgraded the example project to the latest react-hot-loader
https://github.com/halt-hammerzeit/webpack-react-redux-isomorphic-render-example