Skip to content

Add deduplication options for append and prepend. #170

@jho406

Description

@jho406

When working with PUT POST, etc, we may respond with a Super Turbo Stream response that appends to https://thoughtbot.github.io/superglue/2.0.alpha/fragments/, but at the same time, we may also issue a broadcast https://thoughtbot.github.io/superglue/2.0.alpha/super-turbo-streams/#append.

This can cause duplicate appends, when listening to the same channel for the user. Lets add an option to Superglue JS to uniquely append items. We currently handle Super Turbo Stream appends at

Much like how options can be passed to append, we can expand it. Perhaps we can add a unique: true as an option?

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