This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
loadScript should return a singleton promise, or DEFAUL_URL should be configurable library-wise #61
Labels
Milestone
I've a probelm in my vuejs app due to the async nature of loadScript and loadModules.
When i boot my vue app i bootstrap also the esri library with
loadScript({ url: "https://js.arcgis.com/3.22/init.js"})
and in some of my vue components i load modules with something likeloadModules(['esri/geometry/geometryEngine'])
If loadScript with the custom version of the library is not completed, loadModules is rejected.
The solution is to provide the same promise instance for every loadScript call or maybe provide a configurable DEFAULT_URL or seti it with the first call of loadScript.
The text was updated successfully, but these errors were encountered: