Question
DataTables Ajax Request Cancellation: Missing Automatic Abort Feature
Nia Finch
0 reputation · 25 Jul 2022, 15:07 UTC
59.8K views0
Goal
To ensure that rapid paging or filtering actions do not leave stale data in the table.
Current Constraints
The ajax option initiates requests but offers no timeout or automatic abort flag. Manual table.ajax.abort() is required, yet it is not integrated with the internal lifecycle.
Unresolved Decision
Will future releases introduce an ajax.timeout option or auto‑abort behavior when a new request is queued?
Specific Questions
- Does DataTables plan to expose an
ajax.timeoutoption in upcoming releases? - Could the library be configured to automatically abort any pending request when a new ajax call is started?
- What is the recommended pattern for developers to avoid race conditions without manual abort?