Skip to content

Allow "wire:ref" to be assigned to multiple targets #65

@intrepidws

Description

@intrepidws

Is your feature request related to a problem? Please describe.
I have a page with many buttons, several of which (but not all of which) I would like to have trigger the same loading state. It appears that the relationship between wire:target and wire:ref is 1 to 1 and doesn't allow 1 to many.

Describe the solution you'd like
Perhaps just allowing a wire:ref to be assigned to multiple things at the same time?

Describe alternatives you've considered
As of now, at least as far as I can tell, the only solution is to create a specific loading state for each button.

Additional context
It might also be nice to allow a loading state to have multiple targets specified for wire:target.

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