Skip to content

Make Super Turbo Streams play nicely with Turbo Streams. #14

@jho406

Description

@jho406

superglue_rails ported TurboStreams, but including the Superglue::Broadcastable module will override any existing turbo stream methods. In other words Superglue’s broadcast_append_to will override the turbo_rails version.

To fix this, lets allow scoping of super turbo streams so that instead of @post.broadcast_append_to, we have to do @post.superglue.broadcast_append_to. I wonder if there’s a way to make this behavior modifiable. For example include Superglue::Broadcastable.scoped or something equivalent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions