#add handlers for fly update layers by ipostol · Pull Request #272 · google-map-react/google-map-react
Hello, this is update for resolve fly updates layerTypes by new props (now they can inititialize with map 1 time)
| this.map_.setOptions(options); | ||
| } | ||
|
|
||
| if (!isEqual(nextProps.layerTypes.sort(), this.props.layerTypes.sort())) { |
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.
@istarkov, removed sort/isEqual logic, left only ref equal
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
bot
locked as resolved and limited conversation to collaborators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters