You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately setting that parameters inside the function doesn't have any effect in Storybook. If I add a console.log(Foo) before the return <div>... I can see that the parameters on the Foo object are indeed being set but Storybook isn't updating based on it.
My real use case here is with the storybook-addon-apollo-client. I would love to have a control that I could modify to change the mocks passed to the MockedProvider which are set on the parameters. Is there any way to achieve what I'm looking for?
The text was updated successfully, but these errors were encountered:
馃憢 First off thanks for this amazing product! Migrated from v5 to v6 recently and controls inference from Typescript prop types is absolutely amazing.
I'm wondering if it's possible to set parameters of a story based on the args so that someone could play with parameters via controls.
Here's a trivial example of what I'm interested in:
Unfortunately setting that
parameters
inside the function doesn't have any effect in Storybook. If I add aconsole.log(Foo)
before thereturn <div>...
I can see that the parameters on theFoo
object are indeed being set but Storybook isn't updating based on it.My real use case here is with the storybook-addon-apollo-client. I would love to have a control that I could modify to change the mocks passed to the
MockedProvider
which are set on the parameters. Is there any way to achieve what I'm looking for?The text was updated successfully, but these errors were encountered: