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

Update props on change #33

Closed
RWOverdijk opened this issue May 21, 2021 · 0 comments
Closed

Update props on change #33

RWOverdijk opened this issue May 21, 2021 · 0 comments

Comments

@RWOverdijk
Copy link

RWOverdijk commented May 21, 2021

I'm using this addon for my react-based storybook setup. It works for the initial load but changing to a different mock doesn't seem to update the props of my story.

Am I just misunderstanding what this addon does?

Update: I figured it out. Mocks is an array in case you're using multiple queries.

Is there a way to change the results in storybook? I want a loading toggle, an error toggle... Different types of responses. Can I just swap out the mock in the array?

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

1 participant