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

Core: Fix HMR for global decorators in main.js config #9354

Merged
merged 1 commit into from
Jan 8, 2020
Merged

Conversation

ndelangen
Copy link
Member

Issue: #9192

What I did

Adding a _StorybookPreserveDecorators unto the module for flagging when to preserve global decorators

How to test

  • open the official storybook in dev mode
  • change a story, it should HMR correctly without erros
    /?path=/story/basics-syntaxhighlighter--bash uses the global theme from a global decorator so it's a good reproduction
  • change preview.js file, it should reload the iframe, not the manager

… flagging when to preserve global decorators
@ndelangen ndelangen added this to the 5.3.0 milestone Jan 8, 2020
@ndelangen ndelangen self-assigned this Jan 8, 2020
@vercel
Copy link

vercel bot commented Jan 8, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/storybook/monorepo/61d8anrjk
✅ Preview: https://monorepo-git-fix-9192.storybook.now.sh

@shilman shilman changed the title FIX 9192 Core: Fix HMR for global decorators in main.js Jan 8, 2020
@shilman shilman changed the title Core: Fix HMR for global decorators in main.js Core: Fix HMR for global decorators in main.js config Jan 8, 2020
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants