You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Cannot use React hooks in the story directly because of directly call on component like a fuction. I have a temporary workaround by placing the following code in front of with addDecorator(withThemesProvider(themes));. But I feel this might be an issue inside of withThemesProvider
`addDecorator(Story => <Story />);
To Reproduce
Steps to reproduce the behavior:
Have a story written with React Hooks
Go to the storybook
See error
Expected behavior
Storybook should render as normal
Screenshots
Desktop (please complete the following information):
OS: MacOS Catalina V10.15.4
Browser Chrome
Version v80
The text was updated successfully, but these errors were encountered:
Describe the bug
Cannot use React hooks in the story directly because of directly call on component like a fuction. I have a temporary workaround by placing the following code in front of with
addDecorator(withThemesProvider(themes));
. But I feel this might be an issue inside ofwithThemesProvider
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Storybook should render as normal
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: