question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

⚠️ Many features don't work until you refresh the page

See original GitHub issue

Please ensure:

  • The bug is caused by Refined GitHub. It doesn’t happen if I disable the extension.

Description

One of the recent AJAX PRs might have broken the loader altogether. One example I see is in the PR Files tab.

  1. Open https://github.com/sindresorhus/refined-github/pull/4685
  2. Click the files tab
  3. Notice that almost every feature is missing:
  • remove-diff-signs
  • pr-jump-to-first-non-viewed-file
  • faster-reviews
  • collapsible-button (but table-input is working, these 2 should be identical)
  • batch-mark-files-as-viewed
  • etc etc etc
  1. Refresh the page, everything works

cc @kidonng @dertieran @cheap-glitch @yakov116 as you’ve recently worked on the ajax part

Screenshot

Screen Shot 2

Console errors

No response

Example URL

https://github.com/sindresorhus/refined-github/pull/4685 -> then click the files tab

Browser(s) used

Safari

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:29
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
williammckcommented, Sep 1, 2021

Dug around for a bit, this is due to deduplicate not being set to has-rgh-inner on some features after https://github.com/sindresorhus/refined-github/pull/4571.

e.g. if I apply the following patch, faster-reviews now starts functioning properly even after multiple tab clicks.

diff --git a/source/features/faster-reviews.tsx b/source/features/faster-reviews.tsx
index 1b11bd54..7cc4e23c 100644
--- a/source/features/faster-reviews.tsx
+++ b/source/features/faster-reviews.tsx
@@ -54,6 +54,7 @@ void features.add(__filebasename, {
                },
        ],
        awaitDomReady: false,
+       deduplicate: 'has-rgh-inner',
        init: addSidebarReviewButton,
 }, {
        shortcuts: {
@@ -63,5 +64,6 @@ void features.add(__filebasename, {
                pageDetect.isPRFiles,
        ],
        awaitDomReady: false,
+       deduplicate: 'has-rgh-inner',
        init: initReviewButtonEnhancements,
 });

I may spend some time this weekend identifying where all this needs to be updated, if no one gets to it before then.

4reactions
fregantecommented, Sep 29, 2021

This has been fixed for many PR-related features and will be in the upcoming v21.10.1.

If you still see this problem after updating, please leave a link to the page you’re seeing the issue on (i.e. the page you have to refresh for features to appear)

Read more comments on GitHub >

github_iconTop Results From Across the Web

️ Many features don't work until you refresh the page - GitHub
The bug is caused by Refined GitHub. It doesn't happen if I disable the extension. Description. One of the recent AJAX PRs might...
Read more >
Webpages do not load without hitting the refresh button ...
Webpages do not load until I hit the refresh button several times. Happens 80% of the pages I try to open.
Read more >
Content Jumping (and How To Avoid It) | CSS-Tricks
I would argue that shifting the page layout after the initial render (without relevant user interaction) may be the single most unpleasant user ......
Read more >
Configuring your web browser to allow pop-up windows
Most web browsers include a feature to block pop-up windows. ... Open Chrome, then go to the web page that you want to...
Read more >
Live Preview - VS Code Extension - Visual Studio Marketplace
Extension for Visual Studio Code - Hosts a local server in your workspace for you to preview your webpages on.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found