Skip to content

Infobox duplicated in array.map #3078

Answered by bdegiglioD6
bdegiglioD6 asked this question in Q&A
Discussion options

You must be logged in to vote

If anyone comes across this issue: the solution is here

tldr: StrictMode was detecting unexpected side effects on my map component, which was intentionally double-invoking my useState function, making two InfoWindows appear, instead of just one.

Remove strict mode and the issue should go away.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bdegiglioD6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant