Skip to content

Best usage with Storybook? #1352

Answered by TkDodo
RasyadiAbdoellah asked this question in Q&A
Discussion options

You must be logged in to vote

Here is a very good guide of setting up storybook with react-query and mock service worker: storybookjs/storybook#12489 (comment)

I haven’t tried it out yet, but theoretically, it will allow you to get rid of your abstraction and just add stories for components that make actual requests, and they will be mocked on network level.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@RasyadiAbdoellah
Comment options

Answer selected by RasyadiAbdoellah
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@TkDodo
Comment options

@mhesham32
Comment options

Comment options

You must be logged in to vote
2 replies
@mhesham32
Comment options

@k0l11
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants