Turbo and stimulus glitch when exiting the app and coming back with history

@yunggindigo Indigo Tech Tutorials
Sat, 30 Aug 2025 11:22:54 +0000

Not sure about the exact reason but this does seem like an overly complex solution. Are you not using Stimulus at all? I would suggest you to use stimulus actions instead of manually setting javascript event listeners because that usually works better with Turbo