I Have 1 task and 1 problem. I use react-google-maps . My task is: add markers by the event. My problem - after every adding point position marker re-render component GoogleMap. And map has flicker effect if i use statefull component or HOC. I've tried use recompose. Good library. But a marker is added to the state but the marker is not added to the map. Give some advice for resolve this problem.
Asked
Active
Viewed 712 times
0
-
A marker should be an independent component and it shouldn't trigger re-rendering on a map. Please show your code because it's hard to guess what you are doing wrong without it. – niba Oct 23 '17 at 11:51
-
Did you figure it out? – Jeremy Levett Jun 27 '18 at 02:21