Replies: 1 comment 1 reply
-
Does const parameters = {
options: {},
};
if (!something) {
parameters.options.storySort = (a, b) => storySortDefault(a, b);
}
export { parameters } |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When Sorting Stories with a custom storySort function, is there anyway to fallback to the default sort function?
(i.e. the one that would have been called if a custom sortySort had not been specified)
e.g.
It looks like it is defined in storySort.ts but I don't see a way to get at it.
Beta Was this translation helpful? Give feedback.
All reactions