Skip to content

[Bug] reuseMaps does not reset all reactive props #2559

@felixpalmer

Description

@felixpalmer

Description

reuseMaps should allow re-rendering the Map component without having to reinitialized the underlying basemap library.

By changing the set of props passed it is possible to get into a invalid state with a deck.gl layer - where for example the basemap cannot tilt, while deck can.

Expected Behavior

No response

Steps to Reproduce

Open https://deck.gl/examples/maplibre and then use the table of contents to switch to the https://deck.gl/examples/hexagon-layer. If either is loaded directly, the issue does not occur

Screen.Recording.2025-09-30.at.15.55.51.mov

Environment

  • Framework version: deck.gl 9.1 & also 9.2
  • Map library: Maplibre
  • Browser: Firefox/Chrome
  • OS: OSX 15.5

Logs

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions