Just wanted to pose a question, I’m relatively new to Turbo and for the most part it seems to be straight forward. We’ve got a Rails 6 application (which we can’t upgrade to 7 right now). We have UJS and we are gradually working towards changing some legacy code to use Turbo/Hotwire.
We have disabled application wide Turbo and aim to add it in on a per-link basis until we are ready.
import '@hotwired/turbo-rails'
Turbo.session.drive = false // disable turbo app wide and add for specific elements gradually
However, the following does not trigger at all. I’m expecting it not to work unless I have data-turbo=“true” of course.