With VisualEditor, a user can make e.g. multiple copyedits to a page. We want to make sure the "Show try new task dialog on every Nth edit" rule is adhered to in this case.
We export to the client-side the count of edits by the user for each task type on page load, so we could keep track of how many edits happen in the suggested edit session, then show the dialog on the Nth edit.
This is approach is probably more straightforward than using the getnextsuggestedtasktype endpoint, because we'd have to make sure the timings are correct between saving an edit, re-generating user impact data.