React-styleguidist: ComponentsListRenderer extending not works

Created on 25 Nov 2017  Â·  7Comments  Â·  Source: styleguidist/react-styleguidist

Tried extending the ComponentsListRenderer.js component. And it s not working as expected. I tried extending other *Renderer components and works fine, except this one.

styleguide.config.js

...
styleguideComponents: {
    ComponentsListRenderer: path.join(__dirname, 'styleguide/components/ComponentsListRenderer'),
},
...
bug

All 7 comments

Please make a demo project that we can debug based on this repo: https://github.com/styleguidist/example

Sure I will do. :)

im getting this issue too, very strange

@danwoodbury

Please make a demo project that we can debug based on this repo: https://github.com/styleguidist/example

In the scope of anybody else will face this issue, I've got the fix to this.
I've met the same thing with HeaderRenderer and looked into index.js file:

export { default } from 'rsg-components/Heading/HeadingRenderer';

So we should override not the HeadingRenderer but Heading component
The same thing is with ComponentsListRenderer: https://github.com/styleguidist/react-styleguidist/blob/master/src/rsg-components/ComponentsList/index.js

We should override the ComponentsList, not the ComponentsListRenderer component

When is 6.2.0 slated for release? Looking forward to this fix!

Out in 6.2.0!

@HipsterZipster

Was this page helpful?
0 / 5 - 0 ratings