### Description Just noticed: all features are inited twice everywhere. First load: 1. sync run 1. `soft-nav:react-done` Successive loads 1. `turbo:render` 1. `soft-nav:react-done` Caused by: - https://github.com/refined-github/refined-github/pull/9830 The fact that we're not suddenly getting duplicate content everywhere shows that our deduplication logic and policy is doing a decent job 🙌 https://github.com/refined-github/refined-github/blob/ba8a9ef0cf1ca09524e1db551f8656f4f4145235/source/feature-manager.tsx#L235 I think the solution would be to uniquely identify page loads in that loop. I'm not sure if URL-based deduplication is enough, maybe it is. e.g. if `URL` === `lastURL`, skip, else set `lastURL` = `URL` ### How to replicate the issue + URL 1. Enable `Show the features enabled on each page in the console` 2. filter `archive-forks-link` since it's enabled on all repo pages 3. see it appear twice every time ### Extension version 26.78.3 ### Browser(s) used safari ### Token ⚠️ - [x] I set a token in the options page. I understand that some features require a token to work.
Activity
fregante commentedon Aug 3, 2026
AI PRs and newbies not welcome.
fregante commentedon Aug 4, 2026
We have this code to deduplicate the first load, but it's still probably best to find a more comprehensive solution (and replace this)
https://github.com/refined-github/refined-github/blob/c10f1d1cc9af912f21984afed6f753183b4d9a89/source/helpers/feature-helpers.ts#L38-L52