DEV Community

Discussion on: Controlling global decorators via Storybook `args` and `parameters`

Collapse
 
tmikeschu profile image
Mike Schutte

Hi! I don't think the specifics of how/where are important, but let me know if this doesn't help:

Given the reduxState, we construct a redux store object that is used for the classic redux provider. Pseudo code would be:

const mockStore = configureMockStore(middlewares)(args.reduxState);
return <Provider store={mockStore}>{children}</Provider>
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ghcassell profile image
ghcassell

Thank you. I was just clarifying the bigger picture.

Collapse
 
ghcassell profile image
ghcassell

Is there any way to get those created args to be visible in story book?

Thread Thread
 
ghcassell profile image
ghcassell

Ah, it looks as though you have to explicitly say the table: { disable: false } in the associated argTypes.