And, changing the original code with your confirmed element instead of removing the data attribute doesn't work either. It's really strange.
`Rails.confirmed(element)`
My guess is that there will be a lot of fine tuning done so it better fits into the Rails-way/style of things. I think that it has made some good improvements since its original design. I haven't given complete buy in to it yet, but will definitely be keeping a close eye on it over the next many months. Though, having a lot of my view being tested in the same fashion of the rest of my code does seem very appealing.
Check out https://www.driftingruby.com/episodes/realtime-client-updates-from-background-jobs-with-stimulus
It uses a whole combination of things. StimulusJS, ActionCable, ActiveJob, AJAX, etc.