Getting ActionCable to work with Turbo #364
chmich
started this conversation in
Show and tell
Replies: 1 comment
-
Hi Christian! Thanks, this info might be useful to someone setting up ActionCable, so I'll convert it to a Discussion. I think I'd prefer dropping these "examples" from the installation script, as they will likely change and need to be updated over the years. In addition, not every Vite Rails user is using these libraries, and I don't want beginners to assume they are necessary (nor recommended). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
vite:install
generates these two lines inapplication.js
:For using Turbo on its own that works.
When using
action_cable
, you need to avoid tree-shaking, which you can do by changing the import to:Related Issue in
turbo-rails
:Beta Was this translation helpful? Give feedback.
All reactions