This repository has been archived by the owner on Nov 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Decorators may get applied multiple times #50
Labels
Comments
TODO:
|
This was referenced Apr 15, 2017
hi @mnmtanish I have exact this issue with react native. My storybook/index.js looks like this:
the decorator:
I needed to wrap these components in React.Component, otherwise HMR did not work properly. But now a new decorator is added whenever hot reload happens |
Hi, |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Check whether this issue reported on react-storybook repo exists here. It is more likely that it does. Unfortunately we can't apply the solution used there because react-native HMR does not support dispose handlers. Investigate this issue and find a good solution.
If the issue exists, I think users can prevent it by manually calling
clearDecorators
from the config.js file. Global decorators are not that common so this issue is not critical. We can do it after optimising ios/android setup guides.The text was updated successfully, but these errors were encountered: