I understand that specific issue and would consider those approaches, although I prefer using an Elm solution with a state machine rather than using a JS escape hatch. (I would lean towards using Rescript if I didn’t want to use Elm’s purity)
My question is that these sorts of issues pop up repeatedly, so we can solve this, but it won’t help much in preventing the next time this occurs in another use of Cmd.batch.