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