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

Progress bar keeps on loading forever #767

Open
DavidPetrasek opened this issue May 19, 2024 · 0 comments
Open

Progress bar keeps on loading forever #767

DavidPetrasek opened this issue May 19, 2024 · 0 comments

Comments

@DavidPetrasek
Copy link

DavidPetrasek commented May 19, 2024

When using Turbo-Drive and after visiting a link which returns a turbo stream response (text/vnd.turbo-stream.html) everything works, except the blue progress bar on top keeps on loading even though the request was already completed. After 10 minutes, the bar's width reaches around 800% and keeps growing this:
<div class="turbo-progress-bar" style="width: 756.312%; opacity: 1;"></div>

I know I can also use Turbo-Frames to achieve this, but in this case I need to use Turbo-Streams.

To reproduce in Symfony

Symfony route which is triggered after visiting a link:

 #[Route('/turbo-stream', name: '_turbo_stream')]
 public function turbo_stream (Request $request) : Response
 {
     $request->setRequestFormat(TurboBundle::STREAM_FORMAT);

     return $this->render('template.stream.html.twig');
 }

template.stream.html.twig:

<turbo-stream action="update" target="some_target">
    <template>

        <div class="">
           something....
        </div>

    </template>
</turbo-stream>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant