Skip to content

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Apr 2, 2020

Fixes #4719.

@plotly/plotly_js

@archmoj archmoj added bug something broken status: reviewable labels Apr 2, 2020
var promises = [];
var styleObj = getStyleObj(opts.style);

if(self.styleObj.id !== styleObj.id) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

At first I was concerned about order of keys:

JSON.stringify({a: 1, b: 2}) !== JSON.stringify({b: 2, a: 1})

But I see we're making styleObj in a predictable order in the getStyleObj function, so this should be robust 🎉

self.traceHash = [];
self.layerList = {};
self.traceHash = {};
self.layerList = [];
Copy link
Collaborator

Choose a reason for hiding this comment

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

😂

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃

@archmoj archmoj merged commit 77f576c into master Apr 6, 2020
@archmoj archmoj deleted the fix4719-mapbox-react-style branch April 6, 2020 19:28
@archmoj archmoj added this to the v1.54.0 milestone Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fail to react to tiles in mapbox.style.sources

2 participants