-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Storybook 6.0 args don't maintain array order. #11605
Comments
@hipstersmoothie is this something you can look into? I think it's happening in |
@shilman I looked into it more on the TypeScript side, looks like it might be planned to fix this behavior upstream, but currently no fix. |
I could add an option to one of the underlying libraries to sort the props. I'm not sure this will ever get "fixed" in typescript |
Yeah I don't think this is fixable from anyone but the typescript team. So this could probs be closed in the meantime @shilman |
We added user-configurable sorting here: |
Describe the bug
When using both typescript types and argTypes, the order of args are not maintained.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Args are ordered
Screenshots
Code snippets
using this as props
System:
Please paste the results of
npx -p @storybook/cli@next sb info
here.Environment Info:
System:
OS: macOS 10.15.6
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Binaries:
Node: 12.8.1 - ~/n/bin/node
Yarn: 1.22.4 - ~/.yarn/bin/yarn
npm: 6.14.5 - ~/n/bin/npm
Browsers:
Firefox: 72.0.2
Safari: 13.1.2
Additional context
I don't know if this is possible, but I love you
The text was updated successfully, but these errors were encountered: