Closed mhmtyasr closed 11 months ago
This is caused by Vite hot reloading module. For some odd reason, Vite still injects HMR code into the site even with it disabled.
I haven't able to find a temporary fix for this yet...
Try disabling React strict mode.
its working thank you :) @wxmann
Disabling React strict mode should not be the solution, especially for Resium.
From the docs: "<StrictMode>
lets you find common bugs in your components early during development."
@wxmann @mhmtyasr
Could we maybe get this issue reopened? I have the same issue.
Should maybe update the text here if it is indeed Vite HMR that causes this 😅 StrictMode is made specifically to catch stuff like this, so disabling it is like saying to just delete your test if it fails.
Viewer is adding the map to the screen twice, what is the reason?