react-func-openlayers
react-func-openlayers copied to clipboard
Tweaks useEffect on feature prop change
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.