[Storybook] Notify the user about stories that use the mock-api #60
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
muban-template
@pota/muban-template
Introduction
So on one of my projects we use the mock-API in multiple components, since Storybook doesn't start up the mock server by default we might end up with stories that appear broken because of XHR requests failing.
Suggestion
To avoid the stories from being broken we basically have two options:
The first option is probably the easiest to implement but it also has a downside because always running the mock-API causes extra processes to be started that might slow down the stories that do not require the mock-API.
The second option might be better for performance but also requires users to mark stories as API-dependant and would require some form of UI that instructs users to start up Storybook with the mock-API enabled.
The text was updated successfully, but these errors were encountered: