Skip to content

Conversation

@yulinscottkang
Copy link
Contributor

@yulinscottkang yulinscottkang commented Jul 3, 2023

  • Fixes Doubled canvas and container #160

  • Root cause: useEffect is executed twice in development in React 18's strict mode to detect impure functions, causing atlas.Map to initialize twice.

  • Use useRef to ensure atlas.Map is initialized only once between component mount/unmount.

@yulinscottkang yulinscottkang added the v1.0 Version 1.0 label Jul 3, 2023
@yulinscottkang yulinscottkang merged commit e1d9f88 into Azure:version-1.0 Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1.0 Version 1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants