Skip to content

TurboPower should work with @hotwired/turbo and @hotwired/turbo-rails #5

@marcoroth

Description

@marcoroth

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions