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 ability to "poll" for changes #9

Open
adammparker opened this issue Feb 24, 2025 · 0 comments
Open

Add ability to "poll" for changes #9

adammparker opened this issue Feb 24, 2025 · 0 comments

Comments

@adammparker
Copy link
Member

Current solution is to publish comment-list view as a vendor resource and then add the following to the top-level div:

<div wire:poll.visible.5s="$refresh">

Would be great if some of these polling options could be controlled as part of the Filament plugin inside of the resource itself, i.e.:

Comments::make()->poll('5s', onlyWhenVisible: true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant