react-func-openlayers icon indicating copy to clipboard operation
react-func-openlayers copied to clipboard

Tweaks useEffect on feature prop change

Open martinRoss opened this issue 5 years ago • 0 comments

Adds in required dependencies to make sure the map and featuresLayer are always latest versions of those variables. They could get into a race condition, for example, if the features prop changes very quickly before the initial setMap(initialMap) finishes.

martinRoss avatar Sep 12 '20 15:09 martinRoss