DEV Community

Discussion on: How We Migrated To Turbolinks Without Breaking Javascript

Collapse
adrienpoly profile image
Adrien Poly

Thanks for this article, Turbolinks is really lacking comprehensive advanced articles and you really did an excellent job at it.

And I really love your trick for clearing cache for all data-remote 👍👍👍👍.

One thing that I found really useful also is the lifecycle of Stimulus controllers. JS Animations are usually to be done in initialize() to avoid to play them twice when the page reloads after the cache is first displayed