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.

[Question] ability to add to all components?

See original GitHub issue

First, thanks for such an amazing tool with hooks support. Incredibly helpful.

We have over 100 components in our project, and it will take a long time to manually add Component.whyDidYouRender = true; in every single file.

Is there a way to attach to everything? I see the [include] option, but we are currently not using DisplayName - so we would still have to touch every file.

Thanks for the help.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
justinhelmercommented, May 15, 2019

Thanks for the quick reply. I suppose I’m suggesting something along these lines:

return !!(
  options.includeAll ||
  Component.whyDidYouRender ||
  shouldInclude(displayName, options)
)
0reactions
vzaidmancommented, Oct 17, 2019

ok ill add this configuration. thanks for the idea

Read more comments on GitHub >

github_iconTop Results From Across the Web

Component Method of Vector Addition - The Physics Classroom
The analytical method of vector addition involves determining all the components of the vectors that are to be added. Then the components that...
Read more >
Questions To Ask Before Building a Component Library
What problems will a component library solve? Component libraries add complexity to a project's workflow. It's important to be able to justify ...
Read more >
How To Create Custom Components in React - DigitalOcean
In this tutorial, you'll learn to create custom components in React. Components are independent pieces of functionality that you can reuse in ...
Read more >
Top 50 React JS Interview Questions & Answers 2022
This blog contains the top React JS Interview Questions & answers on topics like Javascript, Jsx, Virtual DOM, etc. to help you crack...
Read more >
Chapter 5 Questionnaire Components | Experimentum
5.8 Adding/Deleting Questions. All questions must be given unique names within the component they are in. Components cannot be saved if you have...
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