Skip to content

Commit ee9cce1

Browse files
committed
Add hint about key property
1 parent f24509e commit ee9cce1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Fable.ReactGoogleMaps/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ let myMap =
8787
MapProperties.Markers markers ]
8888
```
8989

90+
If your markers are changing over time, then it's important to set the key property to some stable ID. This allows React to keep track of which markers actually changed and reduces flickering.
91+
9092
### MarkerClusterer
9193

9294
The map component allows you to use a [MarkerClusterer](https://tomchentw.github.io/react-google-maps/#markerclusterer):

0 commit comments

Comments
 (0)