I'm using a client-side feature layer to display distance rings around a moving asset. These rings update whenever the asset's position changes by modifying their geometry using an applyEdits call. The rings have labels positioned above the lines, with settings to prevent duplicate labels from appearing.
However, I've noticed some strange behaviour that I can't seem to fix.
When zooming in and out, the labels and lines sometimes appear doubled, as if both the old and new versions are being drawn at the same time. Initially, I thought this was due to the rendering process temporarily displaying both before cleaning up the old one. But it still happens occasionally, even when the data isn’t actively updating.
Without extra logic to remove duplicates, I sometimes see duplicate rings, which I suspect is due to a race condition during updates.
For relatively frequent updates (e.g., every 5 seconds), should I continue using a feature layer, or would another approach be better? Is this label ghosting expected behaviour?