-
Notifications
You must be signed in to change notification settings - Fork 813
Fixes for various issues (PropTypes in Polygon, GoogleAPI verison, ClickableMarkers not bool) #116
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
Conversation
fixes #120 |
This PR seems to reverse the fix for isomorphic apps in dist/lib/GoogleApi.js. There are a couple of other places that need fixes to permit serverside rendering that I have come across too. |
Is this going to be merged soon? I'd love to clean up my console. |
src/index.js
Outdated
@@ -143,7 +143,7 @@ export class Map extends React.Component { | |||
zoom: this.props.zoom, | |||
maxZoom: this.props.maxZoom, | |||
minZoom: this.props.maxZoom, | |||
clickableIcons: this.props.clickableIcons, | |||
clickableIcons: this.props.clickableIcons || false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably simpler to change it to !!this.props.clickableIcons
. The !!
syntax coerces truthy/falsy values (null
, 0
, 1
, a valid object) into boolean type true/false values, so they will match the expected type bool
- i.e. null
and 0
become false
, 1
or {...}
becomes true
Updated thanks @jaysanatez |
No description provided.