Skip to content

Conversation

@mrMetalWood
Copy link
Contributor

Map was not loading due to early exiting in useEffect hook.

First render: mapContainer is always null -> no init maps hook (early exit)
After that: The useEffect that is called when mapContainer changes requires a map (which should have been created in the init hook, which never happened)

I now combined those two hooks.

closes #14

@mrMetalWood mrMetalWood requested review from BiniCodes, pReya and ro-ka July 28, 2020 08:32
@mrMetalWood mrMetalWood merged commit 30b44ee into master Jul 28, 2020
@mrMetalWood mrMetalWood deleted the fix/map-initialization branch July 28, 2020 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Map not loading in v1.4.0

5 participants