Skip to content

Conversation

@OutlawAndy
Copy link
Contributor

The previously ignored options of broadcast_refresh_to are now forwarded to turbo_stream_refresh_tag.

This PR resolves #762 and is in support of hotwired/turbo#1208.

@OutlawAndy
Copy link
Contributor Author

OutlawAndy commented Nov 21, 2025

@seanpdoyle It occurs to me now, that also updating the Broadcastable model concern might be the other thing required to support hotwired/turbo#1208. I like what you said here:

Another approach might be to keep broadcast_refreshes generic and simple like it currently is, but change broadcast_refresh_to and broadcast_refresh_later_to to accept the attributes in the same way that the other stream broadcast methods accept :target, :targets, etc.

Would you like me to do that here as well?

@seanpdoyle seanpdoyle force-pushed the forward-broadcast-refresh-options branch from c38130d to 0a4759a Compare November 21, 2025 22:23
…am_refresh_tag

Update Broadcastable concern to support the StreamsChannel API

Co-authored-by: Sean Doyle <[email protected]>
@seanpdoyle seanpdoyle force-pushed the forward-broadcast-refresh-options branch from 0a4759a to 3768c48 Compare November 22, 2025 00:34
@seanpdoyle seanpdoyle merged commit a3336b4 into hotwired:main Nov 22, 2025
5 checks passed
@seanpdoyle
Copy link
Contributor

Thank you!

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.

Options passed to broadcast_refresh_to are ignored

2 participants