Skip to content

Introduce components to trigger commands #45

Description

@hopsoft

This project has a lot of potential and something I believe is missing for complex use cases of building Turbo driven interfaces.

An approach here I would like to propose is to introduce the concept of a TurboComponent that will render similar to how the ViewComponent gem works, however have the ability to trigger commands within he context of the component. Instead of having commands in separate files scattered across the projects that are trigger from views, we can organise our components together with the commands inside them whilst enabling reactivity within them.

I really like what the LiveWire is doing here in the Laravel ecosystem, and can pull inspiration from how they approached it.

~ @acetinick

hopsoft/turbo_boost-commands#95

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions