react-leaflet-cluster icon indicating copy to clipboard operation
react-leaflet-cluster copied to clipboard

The problem with popups when component is re-rendered

Open pavlo976 opened this issue 1 year ago • 7 comments

I have a problem when component is re-render because of the assignment of cords to url. By that, my popups flash on the map as many times as re-render occurs. Before using this component, everything was perfectly fine

pavlo976 avatar Mar 10 '24 13:03 pavlo976

Same here

0horaa avatar Mar 11 '24 13:03 0horaa

In addition, another problem occurs when two markers have the same position. Then when the component is re-rendered, the pop-ups are closed. @akursat @prorokky

pavlo976 avatar Mar 14 '24 11:03 pavlo976

I had a vaguely related issue but I solved by using memo on my component that showed the pop up.

nottud avatar May 24 '24 15:05 nottud

I had a vaguely related issue but I solved by using memo on my component that showed the pop up.

Can you pass here code snippet how it looks like in your case?

pavlo976 avatar May 24 '24 17:05 pavlo976

Sorry I cannot give my code sample but effectively on the return statement for the component that showed the pop up I wrapped the the result with memo.

nottud avatar Jul 17 '24 16:07 nottud

Sorry I cannot give my code sample but effectively on the return statement for the component that showed the pop up I wrapped the the result with memo.

Im trying to use, but i have the problem 'NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.' when im clicking on popups ...

Can you help?

luiskurihara avatar Jul 24 '24 22:07 luiskurihara