Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated entries when using StoryStoreV7 and auto title globs #17453

Open
yannbf opened this issue Feb 9, 2022 · 2 comments
Open

Duplicated entries when using StoryStoreV7 and auto title globs #17453

yannbf opened this issue Feb 9, 2022 · 2 comments

Comments

@yannbf
Copy link
Member

yannbf commented Feb 9, 2022

Describe the bug

When using the new stories format in main.js, given you have a folder structure like this:
image

With the following use case:

  • As a user, I want to have auto title stories for everything but the stories under /stories/molecules.

Defining a finer grained path + wider path, like so:

module.exports = {
  stories: [
     // default title prefix
    {
      directory: '../stories',
    },
    // defined title prefix
    {
      titlePrefix: 'Composed atoms',
      directory: '../stories/molecules',
    },
  ],
  features: {
    storyStoreV7: true,
  }
}

will resolve into duplicated stories:

image

@shilman
Copy link
Member

shilman commented Jul 8, 2022

This appears to be "fixed" on both next and future/base (see the react-ts example).

Though I'm not sure:

  1. what fixed it
  2. why it was a bug in the first place

@shilman
Copy link
Member

shilman commented Jul 8, 2022

@yannbf can you please double check & close if you're happy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants