generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 52
Page Refreshes #128
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
Merged
Merged
Page Refreshes #128
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This includes HTTP turbo streams and also broadcasting
a0bd1de
to
a2fb323
Compare
a2fb323
to
3a0ec3e
Compare
…adcasted to when using the attribute
Looks complete (at least in feature parity with turbo-rails). Waiting for them to merge theirs so I can merge this one. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
<x-turbo-refreshes-with method="morph" scroll="preserve" />
Blade component that can be used in layouts/pages to toggle on and off the page refresh behaviorbroadcastRefreshes
property that can be toggled on a model that uses theBroadcasts
trait. This will auto-wire the page refresh broadcasts for the current model. When the model was recently created, it dispatches it to the model's plural name by default (private-messages
for aApp\Models\Message
model). Otherwise, it will automatically send the page refresh broadcasts to the current model's channel (private-App.Models.Message.1
forApp\Models\Message
with ID of1
)broadcastRefreshesTo
property that can be toggled on a model that uses theBroadcasts
trait. This will also auto-wire the page refresh broadcasts for the current model, but it will send the page refresh broadcasts to the streamable(s) defined in the property (usually a relationship)recede
,resume
, andrefresh
assertion macros to theTestResponse
classcloses #126
Pending:
Model::withoutTouching(fn)
, so similarly to thewithoutTouching(fn)
it should also allow suppressing broadcasts for specific models)