-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Admin UI glitch - double pressing on "Next" page button causes bugged state #4810
Comments
Can you test this in 5.0b1? The admin page got lots of changes with the bootstrap 5 update, so it would be nice if this happened to get fixed along the way 🤞 |
I reproduced it once in 5.0.0b2 locally - and then failed to do so in additional attempts, but I think its related to a delay of the response as well - so doing it locally is harder but could perhaps be made reliably reproduced by using a "simulate slow internet" or similar as I think is available in chrome. |
Thanks, I can reproduce it easily with 5.0b2 easily by adding I think I have a rough idea - if two page fetches are outstanding at the same time, they cycle state changed between them:
The problem ultimately stems from the fact that setting the offset state is what triggers the request, but the response also sets the offset state. If clicking the pagination button triggered the request without setting the state, I think this wouldn't happen, similarly if the reply populated the UI without changing the state, that would also work. The alternative is some kind of lock to prevent more than one outstanding request at a time. |
#4815 fixes this by breaking the cycle |
In the GIF animation below, you see me first click once, move the cursor away, and then press twice in fast succession. Only three clicks are made, but after the double click it gets stuck going back and forth between page 100-150 and page 150-200.
Observed in JupyterHub 4.1.5 20240508073043
The text was updated successfully, but these errors were encountered: