-
-
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/source-loader messes with custom hooks - evaluates source code? #8294
Comments
Can I take a look on it if it the issue is still open? |
The issue should still be open. 🙂 Thank you. |
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. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
I saw there were some changes to the source-loader (#8499), but this issue still seems to be preset.
Updated Test Repo: https://github.com/donaldpipowitch/storybook-bug-demo-source-loader-context-null |
Yo-ho-ho!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.0-alpha.43 containing PR #8773 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Thank you for the quick release 👏 |
Whoopee!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.8 containing PR #8773 that references this issue. Upgrade today to try it out! |
Describe the bug
I have a custom component using a custom hook. The hook runs an assertion on the context at runtime. I don't know why, but it looks like the source loader runs parts of its logic on my context/hook which throws an error.
To Reproduce
Clone this repo and follow README:
https://github.com/donaldpipowitch/storybook-bug-demo-source-loader-context-null
Expected behavior
No error should happen.
Screenshots
null
is a valid value in my context.System:
The text was updated successfully, but these errors were encountered: