carbon-design-system / carbon-design-system/devtools
Prevent unnecessary duplicate inserts of code
- Dominant language
- JavaScript
- Stars
- 46
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
I've done a lot to clean this up already where the code just kept getting injected every time the page was validated, but there may be still some work still around this particular as it relates to the validation step. It's not a huge issue at the moment, but something I want to keep an eye on and fix as soon as I get a chance.
We've used declarativeContent before, but could it be used to continue validating a page after it's been injected?https://developer.chrome.com/extensions/declarativeContent
https://github.com/carbon-design-system/devtools/blob/master/App/background/tasks/validatePage.js#L17-L21
Contributor guide
Research direction
Start with App/background/tasks/validatePage.js, especially lines 17–21, and review the linked declarativeContent documentation. Trace when page validation runs after injection and identify the conditions that allow duplicate inserts. Done means validation no longer causes unnecessary duplicate code injection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100