All threads / Front-end frameworks and Turbolinks

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Front-end frameworks and Turbolinks

Nick McNeany asked in Javascript

Hey Everyone,

I'm having a small problem with the JavaScript components of the Uikit framework and I know it has to do with turbolinks. Here's the gem I'm using Uikit2-Rails.

I followed Chris's upgrading to turbolinks5 episode, but I still can't get them to work after the initial page load, I'm also using jquery-turbolinks.

Does anyone know of a work around for turbolinks and front-end frameworks, or should I just ditch turbolinks?

Thanks for any help!

Sorry that I can't help you, but just wanted to share that today I ditched Turbolinks. I'm using lightbox navigation. Similar to what Pinterest does and since I pushstate manually to change the URL it messed up the back button so I had to remove Turbolinks and now everything works perfect.
I do think that Turbolinks is great, but in some cases it makes problems. I'm sure you can solve yours. The question is how and if it's worth your time.
Good luck either way.

Thanks Isaac!

I'll look into lightbox navigation.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,399+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.