-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore specific components #90
Comments
🤔 I don't think making users/developers add more code/attributes to their apps solves this issue. As far as I understand you're saying "if I've got a bunch of components on the page, I want to ignore some of them when working on a specific one", which is an issue we can solve with a search UI of some sort, or maybe a "ignore/hide this component" context menu/button? |
For reference React devtools React Devtools has a search bar (don't know it's worth implementing) But also has a way to hide components that match some criteria (to access the menu you need to go to "Components" and the settings icon next to the search bar) Vue devtools Vue devtools has a "filter" search bar. |
I guess the other side of the |
@KevinBatdorf what did we end up with for this? My latest feel is that it's fine to add a hardcoded attribute to ignore the component as long as we make mention of it in the "settings" modal |
I was thinking to add it as an option so users could create a custom selector that we run though 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 No rush on this, trying to make sure there's a path forward for it. |
Should we revive this for v3? There's first-class |
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 |
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.The text was updated successfully, but these errors were encountered: