Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 18 StrictMode: Markers incorrectly positioned #1223

Open
BenHodgsonR2R opened this issue May 2, 2024 · 1 comment
Open

React 18 StrictMode: Markers incorrectly positioned #1223

BenHodgsonR2R opened this issue May 2, 2024 · 1 comment

Comments

@BenHodgsonR2R
Copy link

Describe the bug 馃悰

With StrictMode enabled in development, the markers do not render in the correct position as the map is moved.

To Reproduce 馃攳

Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/p/sandbox/polished-field-vx9x24?file=%2Fsrc%2Findex.js%3A7%2C13
  2. Drag the map

Notice the markers do not respect the provided lat/lng properties, and behave like a a fixed-positioned element on the screen.

Expected behavior 馃挱

The markers respect the lat/lng provided as properties.

Environment:

  • OS: Windows
  • Browser: Chrome
  • Version: Version 124.0.6367.118 (Official Build) (64-bit)
@AaronLayton
Copy link

+1 馃憤 I believe I have an issue on a production site after upgrading to React 18 where the map markers jump around

@karldanninger

chrome_VTGPJHAS1N.mp4

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

No branches or pull requests

2 participants