TL;DR
My problem is, that after creating a feature in the EditorWidget the Feature is not shown in the map. It is not queried. In another identical ap (clone) but different deployment it works just fine.
You can find a table about differences below.
What am I missing and how do I fix it or work around?
Long Version
In our app (called
we are using a simple EditorWidget:
const mapView = await this._mapViewPromise;
this._activeEditor = new Editor({
view: mapView,
container: this.canvasId
});
After drawing and typing data into the form and clicking so save it, the Feature is created.
But: Its not visible until I refresh the whole page.
Checking the network tab shows, that there is no query sent to retrieve the created feature.

After pressing F5, all Features appear:

payload of applyEdits with adds-object nested in edits-object:

Since we copied the app code from another app (called A) and modified some other things I tried the same there and:
The other app immediately is showing the new feature and I can see a query in the network tab.

payload of applyEdits with adds-object:

So both apps, being clones but used in different deployments do different things.
What are the differences I recognize so far?
Regarding the different request URL I found these two different docs about applyEdits:
https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service/
https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-layer/
It seems that when applyEdits on FeaturesServer does not run the query afterwards while the applyEdits on FeatureServer/Layer does.
Since I am out of ideas I am wondering whether:
- this is a bug in FeatureServer-applyEdits
- this is intended for some reason
- it is due to some different configuration (like a flag to decide to not to run the query afterwards).
Any ideas and info are welcome.