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

[LiveComponent] Avoid polling over renders #278

Merged
merged 1 commit into from
Feb 22, 2022

Conversation

weaverryan
Copy link
Member

Q A
Bug fix? yes
New feature? no
Tickets #102 Bug D
License MIT

The situation:

A) User clicks a button that triggers an Ajax request
B) While that is processing, polling initiates a new request
C) Original Ajax request from (A) finishes... but since a newer request has already been initiated (from B), its result is never rendered (only the "latest" Ajax request's response is rendered if multiple happen on top of each other).

This fixes that situation by skipping a polling request if there is already a request active.

@weaverryan weaverryan merged commit 5583bc9 into symfony:2.x Feb 22, 2022
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

Successfully merging this pull request may close these issues.

1 participant