-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Fix/error handling #10659
Fix/error handling #10659
Conversation
…es event interface
…f an error for example)
lib/client-api/src/story_store.ts
Outdated
|
||
if (this._channel) { | ||
this._channel.emit(Events.SET_STORIES, { | ||
v: 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
magic number?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with the idea of including errors
in SetStoriesPayload
(if we need to know about it on the manager side).
But I don't like the changed event behaviour. Let's avoid incremental changes to events like this, that's how we ended up with the complex mess of incoherent events we had before.
Let's be careful about what events are emitted when and document things. I tried to do that already although it could be more comphrehensive I think: https://github.com/storybookjs/storybook/blob/a9fc57fe490e5befcb4bdd4f77f6897d283d8263/lib/core/README.md#events-on-startup
Co-authored-by: Tom Coleman <tom@thesnail.org>
… into fix/error-handling
… into fix/error-handling # Conflicts: # lib/client-api/src/story_store.test.ts
I'll investigate the scenarios:
|
Maybe we can make a better UI for the no stories case? WDYT? |
Looking good @ndelangen. I was actually thinking something similar in the preview pane. Wdyt? |
@domyen want to weigh in? |
Issue: #10577 #10664
when there's an error in one of the stories initially, the preview & sidebar will go in a perpetual loading-state & error doesn't show up in the preview
What I did