#Autodocs duplicating story

3 messages · Page 1 of 1 (latest)

fair eagle
#

I am on beta.44 and am using autodocs with tags. The first story is being duplicated below the args table in the stories section. How can I get rid of this?

obtuse iron
#

Hi! This is a purposeful change, to make it more consistent that all stories are shown in the list below, not excluding the primary story anymore.
I've explained here for how you can revert it if you want to.
https://github.com/storybookjs/storybook/pull/20604#issuecomment-1421310654

What's your use case for not showing it?

GitHub

Issue: N/A
Telescoping on #20559
What I did
Added a render option forceInitialArgs which means a story is rendered with it's initial args no matter what and doesn't respond to arg updates. ...

fair eagle
#

Interesting, thanks for your reply! My use case is having just a single story to show on that docs page with some description, for a very simple component. Having the same story rendered below is superfluous and looks like a mistake