esri.views.LayerViewFactory: Failed to create view for layer

855
0
05-26-2020 06:18 PM
ChrisGuirguis
New Contributor II

In our SPA, we are seeing errors logged from the view-layer-factory when users navigate away from the map view before it finishes loading. We did some digging, and it looks like the Dojo loader for that component is not cancelling the promise correctly. I can see that the call to disposeLayerView is calling Promise.cancel, and I can see some of the downstream promises are also calling cancel; however it looks like at some point in the Promise chain, that cancel is not handled/checked for, and so it flips to a reject which gives us the call to logger.error.

At the very least, I think this makes sense to downgrade to a warn/info since it is expected. Would it be possible to get a fix out for this?

0 Replies