Issues with nested components with similar names
See original GitHub issueI 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
- The properties on the
step-manager/step
component appear on thestep-manager
page when turning documentation forstep-manager/step
off
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:13 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 forstep-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.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
andmy-button-list
and it is matching both of them and giving me the same error.