Hi All,
I have noticed a very annoying problem for us.
In version 4.4 PopupTemplate with content function property use to display its panels "on demand".
Which means that panels where only queried when user was clicking on the next feature of the popup.
Now that we use 4.17 API, the issue is that the content panels are loaded once in a row for all panel features. Which can lead to a very big amount of data that has to be loaded and not useful.
You can see this difference in sample :
https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=popuptemplate-...
just change the API version from "<script src="https://js.arcgis.com/4.4/"></script>" to "<script src="https://js.arcgis.com/4.18/"></script>" and we can see that function "queryChargingStations()" is called on demand displayed panel in old 4.4 version, but for version 4.17, it is called on each features at the creation of the popup even though related panels are not displayed.
(To see that just put an alert"Panel now loading"); in the beginning of function queryChargingStations)
This leads for us to a huge data loading and causes issues.
Is there a way for content function to be called at feature's panel display time instead of all features in a row ?
Beast Regards , Christophe