Closed CrocoDillon closed 7 years ago
Excellent I was looking at RRv4 doc and it says that the on* callback are now deprecated. https://github.com/ReactTraining/react-router/blob/master/packages/react-router/docs/guides/migrating.md#on-properties I think this boilerplate rely on the onEnter callback to perform server rendering. What is the best way to do server rendering in that case ?
Exactly, I think the same is possible with react-router-config
, but I just haven't had the time to try it out yet.
I think this react router config lib is too experimental. I might try to use this as an example https://github.com/technology-ebay-de/universal-react-router4 and apply it to the boilerplate.
I am working on that one. the client side is fine for now but I am having some trouble with the server-side. I will keep working on a solution. hopefully I will have a PR soon. Have you done any progress on this one?
Not yet, looking forward to see what you come up with!
@rolele @CrocoDillon any idea when can we have RR4 on this boilerplate
I'll make sure to find some time to update to RRv4 next weekend. There is an open PR for it but it needs some more work.
Okay didn't happen in the weekend. I'll do my best though to do this soon.
Finally done, there is an (unrelated) issue with hot reloading though... see #30
While I like the API of RRv3 more, it's time to update to v4. I will probably write some wrapper because I don't like to have route configuration all over the place. It has to be either in one place, or at least very well structured.