Closed MikeTschudi closed 7 years ago
hey @MikeTschudi what else do we get from fetchData()
? Do we need to make another network call?
load()
gets the http://www.arcgis.com/sharing/content/items/<id>
main part of an item, while fetchData()
gets the http://www.arcgis.com/sharing/content/items/<id>/data
data resource part where all of the application configuration values reside. The PortalItem doc implies that load()
gets all resources, but it doesn't. It would be better if load() had an option to return both pieces to avoid the second network call.
@kellyhutchins FYI. I guess it wasn't getting all the app values before?
@driskull I can look but it must be otherwise it wouldn't be possible to configure and save the config changes for the existing 3d templates.
yeah, lets double check. I thought it was working. We can always revert this if needed.
We have the fetchData portion in the 3D template source code so looks like we added this logic to the 3d template source but missed updating the boilerplate.
Merged data-resource fetch from 3DScene template with existing boilerplate queryApplication