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.

Ignore specific components

See original GitHub issue

Sometimes I have many sort of “throw away” components that don’t really need to show in DevTools. If you’re not opposed to adding more optional attributes, we could add an x-ignore and have DevTools ignore those components all together.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
HugoDFcommented, Dec 15, 2020

I was thinking to add it as an option so users could create a custom selector that we run though document.querySelectorAll() then ignore whatever the user enters.

The blocker being it’s kind of clunky to have only one setting. But probably not a big deal.

Thoughts? I can probably work on it tomorrow or maybe Friday.

If you prefer to hard code it too, that’s fine.

custom selector with a default to x-devtools-ignore or data-devtools-ignore sounds good 👍, document.querySelectorAll('[x-data]:not([x-devtools-ignore])') (will be interpolated probably) or we can look at the rootEls when we loop through in backend.js

No rush on this, trying to make sure there’s a path forward for it.

0reactions
KevinBatdorfcommented, Jun 19, 2021

Depends how we plan on getting detecting components. Wouldn’t it just be automatic?

We’d need to use another directive to hide it specifically from devtools

Read more comments on GitHub >

github_iconTop Results From Across the Web

exclude @Component from @ComponentScan - Stack Overflow
Save this question. Show activity on this post. I have a component that I want to exclude from a @ComponentScan in a particular...
Read more >
Ignore parts of the code | JetBrains Rider Documentation
Minimize unwanted results in design-time code inspection and code inspection in specific scope by ignoring parts of code that you are not going...
Read more >
Excluding Components and Bodies - 2019 - SOLIDWORKS Help
In the PropertyManager, select Excluded Components. In the graphics area or flyout FeatureManager design tree, select components to exclude. Hides the selected ...
Read more >
Including / Excluding a Test for Multiple Components
The Enable / Disable Tests option in the Tests sub-menu of the Agents menu enables administrators to enable / disable specific tests for...
Read more >
Excluding Components from your Simulation Studies [VIDEO]
The first method is directly in an existing study. You can right-click on a component in the Simulation tree and choose “Exclude from...
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