-
Notifications
You must be signed in to change notification settings - Fork 383
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 index route (/) to /react gives React server checksum warning #274
Comments
oh, this is using the dev server in case it's not clear |
@brucek By dev server, do you mean Webpack Dev Server? I've moved away from using that as hot loading assets within the Rails app works so well. The main issue with server rendering with React-Router is that you'll need to reference the location that's passed in the "rails_context" in the latest version of React on Rails. |
@justin808, I think I'm using the rails hot loading server, as per docs: $ foreman start -f Procfile.dev My guess is I guess my confusion is because I thought |
@justin808 OK, so wait - should I be using a different Procfile? Procfile.hot looks like the same Rails app with hot assets, right? sorry, might have to have a look at #277 next week, getting crunched right now though :-O |
The Procfile.hot is a good one to use. |
@brucek Any word on this one? |
Hey, sorry - no, I've been pulled over to help fight some other fires so I'll have to get back to this once I dig myself out from that :-/ Thanks for checking in though |
@brucek is this feature request still relevant? |
So I'm just trying to figure out how to move the initial route to
/react
instead of/
.I have a working version up & running at https://github.com/brucek/react-webpack-rails-tutorial.git#test2. Everything is good, except when I initially load the page at
http://localhost:3000/react
, my JS console gives:so for some reason it's not detecting the route and adding the
activeClassName
.It looks like someone referenced a similar issue in
react-router
, but since this is about server-side rendering (and I'm new to the React ecosystem), I'm not sure if:Any chance someone more knowledgable could give me a pointer? Or let me know if there is a better place to post this? Thank you!
The text was updated successfully, but these errors were encountered: