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

3.2-alpha: HMR broken #1506

Closed
2 tasks
shilman opened this issue Jul 22, 2017 · 8 comments
Closed
2 tasks

3.2-alpha: HMR broken #1506

shilman opened this issue Jul 22, 2017 · 8 comments

Comments

@shilman
Copy link
Member

shilman commented Jul 22, 2017

why

Expanding on @usulpro 's comment. Do the following in branch release/3.2 vs. master (3.1.x):

yarn bootstrap
cd examples/cra-kitchen-sink
yarn storybook

Then select one of the Button stories (not the Welcome story).
In a separate window, edit the you're looking at (e.g. change the button text).

Expected behavior (3.1.x):

  • The button text will update.

Actual behavior (3.2-alpha):

  • The page will reload and the Welcome story will show.

Note: when switching between branches, you may need to clean out your node_modules. You can do this by running:

git clean -fdx

This deletes all files that are not part of the git repo, so be careful if you have files lying around!

what

  • diagnose the problem
  • fix it! 😁
@igor-dv
Copy link
Member

igor-dv commented Jul 22, 2017

Until now it was optional..
Don't we want this kind of checking ?

image

@ndelangen
Copy link
Member

It should remain optional

@igor-dv
Copy link
Member

igor-dv commented Jul 22, 2017

Not providing the module breaks the HMR. But it should remain optional.. I am confused 😕

@shilman
Copy link
Member Author

shilman commented Jul 22, 2017

@ndelangen @igor-dv why optional? And if we want to keep it optional, can we at least print out a warning? Seems like a lot of people are getting bit by this, including us in our sample code!

@ndelangen
Copy link
Member

Right, so a single warning into the terminal and console sound fair to me, yes!

Not providing the module breaks the HMR. But it should remain optional.. I am confused 😕

Providing the module enables HMR. If you don't provide the module HMR is not enabled, for whatever reason the users is choosing to.
Now if a lot of users are missing this, a reminder-warning is definitely in order.

@ndelangen
Copy link
Member

Is this something you want to do @igor-dv ?

@igor-dv
Copy link
Member

igor-dv commented Jul 25, 2017

Yeah, I'll do it by the end of the week

@ndelangen
Copy link
Member

Cool, will close this then, will be released soon!

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

No branches or pull requests

3 participants