PR Commits tab requests deferred_commits_data twice after Back/Forward navigation #214194
Unanswered
IbrahimHafez1
asked this question in
Pull Requests
Replies: 1 comment
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
Body
On a pull request's Commits tab, the deferred commit data is fetched twice with an identical URL when the tab is reached through browser history.
Steps
pull/<n>/commitsand onepull/<n>/deferred_commits_data?start_entry=0, as expected.Expected: one
deferred_commits_data?start_entry=0request, as on a normal click.Actual:
pull/<n>/commitsis requested once, butdeferred_commits_data?start_entry=0is requested twice with the same URL and both return 200.Hovering over the Commits link does not prefetch anything, so the second request comes from the history navigation itself, likely the page restoring and then re-rendering without skipping a fetch already made. It's harmless but doubles the deferred-data load on every Back/Forward visit.
Seen in Chrome on Windows.
All reactions