react-azure-maps
react-azure-maps copied to clipboard
Source not found error when adding layer
Using AzureDataSourceProvider and AzureLayerProvider as mentioned in the azure samples in my react application. When I go to different page and come back to Maps page or section, many times I am seething Resource source with id is not found while adding layer. This error happening in useAzureMapLayer hook, map.layers.add() function.
If I reload the page everything normal.
I tired to add the delay while waiting for source to be available but still the same issue.