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

Defer component with infinite polling #534

Open
lucassdoro opened this issue Nov 9, 2023 · 0 comments
Open

Defer component with infinite polling #534

lucassdoro opened this issue Nov 9, 2023 · 0 comments

Comments

@lucassdoro
Copy link

lucassdoro commented Nov 9, 2023

  • Laravel Version: 10.28.0
  • PHP Version: 8.2.11
  • Splade JS Version (npm): 1.4.16
  • Splade PHP Version (composer): 1.4.16
  • Dev environment (OS, Sail/Valet/etc): Sonoma 14.1 / Sail

Description:

Whenever I try to use the Defer component with polling and switch pages, the polling continues to run endlessly as if the previous page still existed.

Steps To Reproduce Issue:

  1. Create 3 pages.
  2. On the first page, add a component with <x-splade-defer accept="application/json" url="url" poll="5000"></x-splade-defer>.
  3. Leave the other page blank.
  4. On the initial page, add links to the other two pages using the Link component.
  5. When switching to the blank page, you will notice that the request continues to be made.
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