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

Docs InboxScreen shows only Error stories #93

Open
nachten opened this issue May 12, 2023 · 2 comments
Open

Docs InboxScreen shows only Error stories #93

nachten opened this issue May 12, 2023 · 2 comments

Comments

@nachten
Copy link

nachten commented May 12, 2023

When I freshly clone this repo and run yarn storybook then click on the "Docs" of my InboxScreen story I then only see Error stories for both Default & Error (as expected) story

@somewonderfulguy
Copy link

somewonderfulguy commented Jun 21, 2023

I can confirm that. Having the same issue.

Steps to reproduce:

  1. Clone https://github.com/chromaui/learnstorybook-code.git
  2. yarn
  3. yarn storybook
  4. open http://localhost:6006/?path=/docs/inboxscreen--docs
  5. see the bug

ER: first two screens should show task list and only Error story should show error state
AR: every single screen shows error

@jonniebigodes
Copy link
Collaborator

@nachten, thanks for taking the time to reach out to us by opening up this issue. We appreciate it. 🙏 I can confirm it as well. Something needs to be fixed with how MSW and the AutoDocs feature operate together. Based on a quick search, it seems that it's related to this issue, meaning that the last handler provided in the story is the one that prevails, which looking at how it the story file is structured the error handler persists.

If you're both ok with it, could you reply in the issue I've mentioned so that the maintainers are aware of the situation and hopefully look into the issue and solve it with a future release and link this issue as a proof of concept of the behavior.

Hope both of you have a fantastic day.

Stay safe

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

No branches or pull requests

3 participants