-
Notifications
You must be signed in to change notification settings - Fork 421
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 does not disappear after fast network response #1202
Comments
We are also seeing this. @Intrepidd, do you think this could be related to the change introduced in #1168? |
@calleluks this doesn't ring a bell, but I'd love to chase it down. I haven't seen this at all, do you have any way to consistently reproduce it ? Could you provide a minimal reproduction example? |
Thanks @Intrepidd, I really appreciate it! Unfortunately, I'm having trouble coming up with a minimal example... I'll let you know as soon as I succeed! |
I'm seeing the same issue with a 3ms request and I can reproduce it reliably with my app. It's a golang backend using Turbo and Stimulus on the frontend. Would that be a useful reproduction if I can cut it down to a minimal example? |
I guess so! I'm wondering if I should be able to reproduce with no backend at all and just html files,or a python simple http server backend. Maybe my machine is not fast enough. I'll try to reproduce this way but any other reproduction is welcome |
We're also seeing this with Turbo 8. We have a bunch of regression screenshots as part of our test suite, some of them now contain the progress bar at the top which wasn't the case before. We'll look into this and see if we can find a way to reproduce it. |
Update: After a little digging, we saw that in our case, this only happened in the test environment. We were using lolex (now called @sinonjs/fake-timers) to advance JS time inside our tests. Per default, lolex overrides a whole lot of timing functions, which I believe caused these issues (the Turbo progress bar uses |
I found a problem with the new, latest version (8.0.3) where the progress bar does not disappear after a fast network response (also the style goes beyond a with of 100%).
The problem seems to be related to the
ProgressBarDelay
and the order in which events are fired.With the default delay of 500ms and a response under 500ms, the progress bar remains. By reducing the delay (
Turbo.setProgressBarDelay()
) or artificially slowing down the request by throttling, the problem disappears.This issue is maybe related to #1153.
The text was updated successfully, but these errors were encountered: