stamen / panorama-template

Template / boilerplate for using stamen/panorama components, in a tasty React/Redux/React-Router shell
ISC License
2 stars 1 forks source link

React-Leaflet is not compatible with Server-Side Rendering #5

Closed clhenrick closed 8 years ago

clhenrick commented 8 years ago

Just noticed this in the React-Leaflet documentation: https://github.com/PaulLeCam/react-leaflet#technical-considerations

ericsoco commented 8 years ago

We can't render leaflet maps on the server anyway. No biggie, esp. for SEO. I'm going to close this, but if I missed something please reopen.

mojodna commented 8 years ago

What does that even mean?

"Server-side rendering" of Leaflet maps should mean "adds a map div and references to Leaflet's JS and CSS", right?

clhenrick commented 8 years ago

Yeah I'm confused by this as well @mojodna

@ericsoco but do we still want to use it then? Will Leaflet break if a page that is using React-Leaflet is rendered server side?

ericsoco commented 8 years ago

@clhenrick I don't believe so. But I could be wrong... Let's cross that bridge when we come to it. If we end up server-rendering and run into a problem with react-leaflet, we can address it then. In the meantime, it's a frequent enough dependency (Leaflet) that we should leave it in, IMO.

clhenrick commented 8 years ago

@ericsoco cool. One thing I'm uncertain about is how CartoDB.JS can be used with React-Leaflet (need to research it more) and I feel like I may end up using that a quite a bit, but that is a separate issue.