TurboPower should work with `@hotwired/turbo` and `@hotwired/turbo-rails`
marcoroth opened this issue · comments
Marco Roth commented
It shouldn't matter if you are using @hotwired/turbo
or @hotwired/turbo-rails
, TurboPower should work either way.
As pointed out in #2 and #3 (comment) it seems like there are some inconsistencies. The following snippets should work:
import * as Turbo from "@hotwired/turbo"
import TurboPower from "turbo_power"
TurboPower.initialize(Turbo.StreamActions)
import { StreamActions } from "@hotwired/turbo"
import TurboPower from "turbo_power"
TurboPower.initialize(StreamActions)
import { Turbo } from "@hotwired/turbo-rails"
import TurboPower from "turbo_power"
TurboPower.initialize(Turbo.StreamActions)