Skip to content

Forward attributes to broadcast_refresh_to and broadcast_refresh_later_to - #788

Merged
brunoprietog merged 2 commits into
hotwired:mainfrom
carldaws:broadcast-refresh-forward-attributes
Nov 22, 2026
Merged

brunoprietog merged 2 commits into
hotwired:mainfrom
carldaws:broadcast-refresh-forward-attributes

Conversation

@carldaws

@carldaws carldaws commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

#763 passes attributes from broadcast_refresh_to and broadcast_refresh_later_to to turbo_stream_refresh_tag but the model helpers which delegate to them (broadcast_refresh and broadcast_refresh_later) take no arguments.

The other broadcast methods (broadcast_replace, broadcast_append and so on) all accept attributes, so this change brings the refresh variants in line.

@carldaws carldaws changed the title Forward attributes to broadcast_refresh and broadcast_refresh_later Forward attributes to broadcast_refresh_to and broadcast_refresh_later_to Jul 28, 2026

@brunoprietog brunoprietog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @carldaws!

@brunoprietog
brunoprietog merged commit 10d72f2 into hotwired:main Nov 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants