You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a Next.js project with react-leaflet-draw. I have a server option to save and load polygon shape data, but I’m facing an issue with the onEdited and onDeleted events. The onCreated event is called only once, no matter how many polygon shapes I draw. However, every time I edit or delete a polygon, the handleChange function is called one additional time, increasing with each edit or delete operation. This behavior is very strange.