-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
fix: storysort #677
base: next
Are you sure you want to change the base?
fix: storysort #677
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great on first glance. Does it work?
@shilman heres the result on this pr beforeafter |
return { index, importMap }; | ||
const sortableStories = Object.values(index.entries); | ||
|
||
sortStoriesV7( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pulling in sort stories from preview api to reuse sorting code
@@ -175,7 +195,13 @@ export function start({ | |||
annotations: any[]; | |||
options?: ReactNativeOptions; | |||
}) { | |||
const { index, importMap } = prepareStories({ storyEntries, options }); | |||
const composedAnnotations = composeConfigs<ReactRenderer>(annotations); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using composeConfig lets us read the parameters synchronously
Issue: #414
What I did
figuring out how to apply sorting in v8
How to test
Please explain how to test your changes and consider the following questions
If your answer is yes to any of these, please make sure to include it in your PR.