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

How to use two addons with custom add function at once #766

Closed
methyl opened this issue Apr 13, 2017 · 4 comments
Closed

How to use two addons with custom add function at once #766

methyl opened this issue Apr 13, 2017 · 4 comments

Comments

@methyl
Copy link
Contributor

methyl commented Apr 13, 2017

Let's say I want to use both https://github.com/storybooks/react-storybook-addon-info and https://github.com/evgenykochetkov/react-storybook-addon-props-combinations

Is there currently any sane way to do that? Both are relying on their own add function, so I'm not sure how one can use both.

@usulpro
Copy link
Member

usulpro commented Apr 13, 2017

@methyl Thanks for your question!

This is a great issue, which should have been raised sooner or later. Unfortunately, this is not possible at the moment. But I think we should definitely add this feature to our roadmap, since increasing the number of addons, it will be more and more in demand.

Looks like we can consider the following approaches for that:

any other ideas?

Not sure that all addons can be combined in this way though

@usulpro
Copy link
Member

usulpro commented Apr 13, 2017

@methyl If you are looking for a personal way of using these addons together, you can do it by creating your own extension via setAddon() API as a workaround.

You can find an example here

If you'll need any help with that feel free to ask me)

@ndelangen
Copy link
Member

#1209 We should find better ways, I think making custom addWithAddon1AndAddon2AndAddon8() is not scalable.

@stale
Copy link

stale bot commented Oct 31, 2017

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. We do try to do some housekeeping every once in a while so inactive issues will get closed after 90 days. Thanks!

@stale stale bot added the inactive label Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants