I’ve been playing with ES Modules in the ArcGIS API for JavaScript 4.25. Dojo is gone, so I have some questions.
The more I work with ES modules, I may have more questions. But these are three so far.
Thanks!
Hi @DanielWebb, good questions, they related to both the AMD and ES modules:
1. No. You can use esri/request or use native fetch directly to load HTML as a string into your app
2. This can be handled through industry-standard patterns such as using Etags. You can also set the cacheBust option in esri/request, but this is a different implementation from dojo, instead of adding a param, it tells fetch to make a conditional request. If you always want to cacheBust, then you can use a requestInterceptor with the url set to null.
3.You can remove event listeners natively. If you are using an "on" listener, you can remove those using the APIs remove() method.