Hi ,
I was working on Arcgis Javascript 3 with the below code.
on(this.map, "extent-change", lang.hitch(this, this.myfunction));
The above line called myfunction during load of the map .But now I am working with ArcGIS JavaScript 4. Any idea how to replicate the same in version 4?