I am following the ESRI Loader example found here
const [EsriMap, EsriMapView, Point] = await loadModules([
'esri/Map',
'esri/views/MapView',
'esri/geometry/Point'
]);
My question is: what is the preferred method to load Esri Modules that will be used in other methods; for example in a click event handler.
Should the modules all be loaded at initialization?
What is the best way to make modules available to other methods in the class?
Should the modules be loaded in each method?