You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.
There are times when I want to be able to just use a module that I know is included in the build (like esri/config) in something like a module's run() that does not support async code. I think esri/basemap is included in the CDN builds too, so that means we could turn esriMapUtils.addCustomBasemap() into a synchronous function, and again, make it something that can be configured in the module's .run() in addition to a route's resolve.
Name could be esriLoader.requireSync()?
The text was updated successfully, but these errors were encountered:
This didn't really work. I got a "undefinedModule" error for all modules that I tried to load this way (esri/config, esri/basemaps, esri/map). I blame Dojo.
Checkout out Ken's answer to this SO question.
There are times when I want to be able to just use a module that I know is included in the build (like esri/config) in something like a module's
run()
that does not support async code. I think esri/basemap is included in the CDN builds too, so that means we could turnesriMapUtils.addCustomBasemap()
into a synchronous function, and again, make it something that can be configured in the module's.run()
in addition to a route's resolve.Name could be
esriLoader.requireSync()
?The text was updated successfully, but these errors were encountered: