Bevin

Joined

660 Experience
6 Lessons Completed
0 Questions Solved

Activity

Posted in Hotwire/Turbo + Webpacker/Stimulusjs

I think I'm confused. I love the functionality of Hotwire and experimented a little with it in a fresh app. I don't understand though, if I can also have Stimulusjs running - I have different needs and I'm assuming I would still want Stimulus for all the weird little interactions where someone doesn't save a record but instead needs to preview changes, Hotwire for the actual partial changes that impact the database. Is there a way to do this? All the tutorials seem to be one or the other.

Also - has anyone taken a legacy app and moved things? I'd love to read stories and hear tips and tricks if anyone's got them.

Posted in Rails & Vue.js Trello Clone - Part 2 Discussion

For Rails UJS, I had to add it using yarn (yarn rails-ujs) then import it and start it at the top of my app script like:
const Rails = require('rails-ujs');
Rails.start();

I'm not sure if it will carry over into the other components, but this is working for me now.