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

Add the ability to respond with turbo_streams from actions #2790

Open
adrianthedev opened this issue May 22, 2024 · 0 comments · May be fixed by #2796
Open

Add the ability to respond with turbo_streams from actions #2790

adrianthedev opened this issue May 22, 2024 · 0 comments · May be fixed by #2796
Assignees
Labels
DSL-related Feature Good first issue Good for newcomers Help wanted We could use some help with this

Comments

@adrianthedev
Copy link
Collaborator

adrianthedev commented May 22, 2024

Feature

We have quite a few ways to respond from actions but sometimes we'd like to take full control.
This feature will add another type of response (API TBD).

def handle
  # do something
  respond_with_turbo_stream [
    turbo_stream.update '[data-some-field="column"]', partial: "some_partial",
    turbo_stream.redirect_to,
    turbo_stream.custom_action_defined_in_the_js,
	turbo_stream.replace_something_in_the_dom,
    # other turbo_stream reponses
  ]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DSL-related Feature Good first issue Good for newcomers Help wanted We could use some help with this
Projects
Status: Next up
Development

Successfully merging a pull request may close this issue.

2 participants