This question resonates with some of the asynchronous tracking challenges we’ve faced outside of GIS. While dojo.Deferred is great for managing callbacks, attaching a unique identifier (like a timestamp or request ID) to each QueryTask call on the client side and maintaining a map of promises keyed to those IDs has worked well for us. In lead tracking systems like Phonexa, every call, click, and form submission is linked to a unique journey ID—it’s that kind of traceability that ensures we only act on relevant data, even when responses arrive out of order. Might be worth adopting a similar pattern for your spatial queries too.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.