Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce components to trigger commands #45

Open
hopsoft opened this issue Jul 30, 2023 · 0 comments
Open

Introduce components to trigger commands #45

hopsoft opened this issue Jul 30, 2023 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@hopsoft
Copy link
Owner

hopsoft commented Jul 30, 2023

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

@hopsoft hopsoft added enhancement New feature or request question Further information is requested labels Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant