Skip to content
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

#add handlers for fly update layers #272

Merged
merged 3 commits into from Nov 7, 2016
Merged

#add handlers for fly update layers #272

merged 3 commits into from Nov 7, 2016

Conversation

ipostol
Copy link
Contributor

@ipostol ipostol commented Nov 3, 2016

Hello, this is update for resolve fly updates layerTypes by new props (now they can inititialize with map 1 time)

@@ -291,6 +294,14 @@ export default class GoogleMap extends Component {

this.map_.setOptions(options);
}

if (!isEqual(nextProps.layerTypes.sort(), this.props.layerTypes.sort())) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo it's on user to sort layers, and to support referential equality. I don't like any kind of isEqual + sort checks here.

@ipostol
Copy link
Contributor Author

ipostol commented Nov 7, 2016

@istarkov, removed sort/isEqual logic, left only ref equal

@istarkov istarkov merged commit 6273309 into google-map-react:master Nov 7, 2016
@istarkov
Copy link
Collaborator

istarkov commented Nov 7, 2016

Thank you!

@istarkov
Copy link
Collaborator

istarkov commented Nov 7, 2016

0.21.3

@lock
Copy link

lock bot commented Dec 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants