How can I debug my storySort function? #30880
Unanswered
AndreyMiloserdov
asked this question in
General
Replies: 1 comment
-
|
Hm... some answers found here: https://stackoverflow.com/questions/79181487/incorrect-stories-order-on-storybook |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
In my preview.ts insert code like a
console.log('[deb] my preview config story sort fn', config.parameters.options.storySort);beforeexport default config;And it is displayed in my browser console.
But if I insert same logger into my storySort funciton - nothing logged in the browser console or terminal.
PS: My sorting settings don't work at all. They don't work in any form (not the example from the documentation, not the function), although the logger shows that the setting is set.
I want to find and understand why my storybook (8..3.4) doesn't want to work with my sorting configuration.
Beta Was this translation helpful? Give feedback.
All reactions