Skip to content
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

Clear decorators on module dispose #335

Merged
merged 1 commit into from
Jul 26, 2016
Merged

Commits on Jul 26, 2016

  1. Clear decorators on module dispose

    The `config.js` file acts as the main entrypoint for users storybook
    code. Stories, decorators etc. are added from here. When webpack HMR
    replaces this module global decorators get applied repeatedly. This
    happens because although the config.js file gets replaced the storybook
    module remains unchanged along with all global decorators we may have
    added before the replacement.
    
    It is okay to remove all decorators when config.js module gets replaced
    because we can be sure that they'll be added again when config.js file
    gets executed.
    thani-sh committed Jul 26, 2016
    Configuration menu
    Copy the full SHA
    6674abc View commit details
    Browse the repository at this point in the history