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.

Issues with nested components with similar names

See original GitHub issue

I have a set of two components, step-manager and step-manager/step (which is yield-ed by the manager). I’m running into a number of issues with this scenario

  • I can’t generate a documentation page for the step-manager/step component because I get an error about the name already being used
screen shot 2018-03-13 at 2 42 01 pm
  • The properties on the step-manager/step component appear on the step-manager page when turning documentation for step-manager/step off

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
alexlafrosciacommented, Mar 14, 2018

Yeah, totally! Would you be interested in a PR that allows for documenting nested components correctly? Or is there a desire to push people away from that pattern for addons?

My use case is documenting a contextual component that’s yielded out of the step-manager. Maybe that is actually the problem to solve. Documentation for step-manager/step doesn’t really make sense because you’d never use it alone, but I don’t know where else to document its API.

0reactions
markcelluscommented, Apr 28, 2018

Just ran into this same issue, but my issue is not because of two nested components, but rather component name prefixes/namespace. I have my-button and my-button-list and it is matching both of them and giving me the same error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReactJS Component Architecture Problems / Nested ...
+ Easier to use (Defined components, no names) · - Hard to maintain (Change code in every file) · - Massive more code...
Read more >
Automatically stub nested components with their names ...
And I want to have a unit test that makes sure that MyCustomComponent is only rendered when that condition is satisfied.
Read more >
Issue while removing items from sub components (like from ...
Issue while removing items from sub components (like from nested component) in Lightning Tree table ... I have a requirement to design a...
Read more >
Interactive components not working when nested inside a ...
I'm having similar yet different issues. In any case, all are caused by nesting interactive components. How come there's no official answer ...
Read more >
Context - React
Context is primarily used when some data needs to be accessible by many components at different nesting levels. Apply it sparingly because it...
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