Skip to content

[LiveComponent] Add keep-alive modifier to polling plugin #2898

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

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

norkunas
Copy link
Contributor

@norkunas norkunas commented Jul 8, 2025

Q A
Bug fix? no
New feature? yes
Docs? yes
Issues Fix #995
License MIT

This is a naive implementation, which I think needs to be discussed.

I think the listener somehow somewhere should be detached when poll disconnects.

And the best solution would be to add it once for all polling, but I don't see how it is doable.

@carsonbot carsonbot added Feature New Feature LiveComponent Status: Needs Review Needs to be reviewed labels Jul 8, 2025
Copy link
Contributor

github-actions bot commented Jul 8, 2025

📊 Packages dist files size difference

Thanks for the PR! Here is the difference in size of the packages dist files between the base branch and the PR.
Please review the changes and make sure they are expected.

FileBefore (Size / Gzip)After (Size / Gzip)
LiveComponent
live_controller.js 120.02 kB / 23.44 kB 120.47 kB0% / 23.51 kB0%

@norkunas
Copy link
Contributor Author

norkunas commented Jul 8, 2025

Oh, livewire keep-alive is a reverse, as @smnandre said in the issue.. How we should name it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New Feature LiveComponent Status: Needs Review Needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[LiveComponent] in-view and tab-active modifiers for polling
2 participants