HexagonLayer hexagons' z-indexes are wrong / reversed after swapping out React for Inferno
See original GitHub issueI wouldn’t normally expect a library to ‘just work’ after replacing something as fundamental as React, but the bug I hit actually seems orthogonal to the virtual DOM tool chosen.
Repro Steps
- Install all required packages for deck.gl with react-mapbox-gl
- Add
inferno
and its respective dependencies, and alias them to useinferno-compat
via webpack - Render!
Observed
Expected
Here’s the code that creates the layer:
new HexagonLayer({
id: 'data-layer',
data,
radius: 200,
extruded: true,
elevationRange: [0, 1000],
opacity: 0.8,
elevationScale: 4,
coverage: 1,
})
I did notice something odd, which was that extruded
had to be explicitly set despite the docs claiming it defaults to true
for this layer type. I wonder if there’s a difference in how default props are assessed?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
HexagonLayer hexagons' z-indexes are wrong / reversed ...
I wouldn't normally expect a library to 'just work' after replacing something as fundamental as React, but the bug I hit actually seems ......
Read more >Reloading DeckGL HexagonLayer when data array ...
My main problem is, that I can't figure out how to refresh the data representing layer after filtering the data array. I saw...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@TedDriggs @colinsheppard Please check the following two lines
https://github.com/uber/deck.gl/blob/4.1-release/examples/3d-heatmap/deckgl-overlay.js#L100
https://github.com/uber/deck.gl/blob/4.1-release/examples/3d-heatmap/deckgl-overlay.js#L131
@TedDriggs - another thing that has failed is enabling of depth testing (z buffer). Either you might not have copied that code from the original example, or Inferno fails to call onWebGLInitialized.
Hard to say for sure, but does indeed appear like React property values fail to be set. Most of deck.gl’s React integration is in the linked source file so putting some breakpoints in there should help narrow it down.
If you are willing to open a PR with your example (maybe in
examples/integrations/inferno
we might be able to take a quick look as well.