Skip to content

Spots List: Update Spots in Map Extent when new Spot created #187

Closed
@jessicagood

Description

@jessicagood

If a new Spot is created while the Main Menu Panel is open with the Spots List showing the Spots in the Map Extent the new Spot is not added to the Spots in Map Extent list right away.

Even a useEffect with spots dependency in Map.js doesn't work since the mapProps.spotsSelected hasn't finished updating by the time setSpotsInMapExtent is called. And we don't want the useEffect dependent on mapProps.spotsSelected or setSpotsInMapExtent would be called every time the selected Spot changes.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions