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

Use store revisions to ensure that stories re-render on HMR. #2605

Merged
merged 1 commit into from
Dec 30, 2017

Conversation

tmeasday
Copy link
Member

Reworking #2588 fro #2241.

I think we should also check the revision number on this line: https://github.com/storybooks/storybook/blob/10ed61dd9e82ad00bfa31872ffc140dfeebe9d42/app/vue/src/client/preview/render.js#L63

But I would prefer a Vue expert to weigh in on that.

Also we should probably rebase/something shilman/refactor-core. This should hopefully cleanly apply in any case.

Finally, @Hypnosphi perhaps suggested some objections to this approach. I think this is the place to discuss them.

@tmeasday
Copy link
Member Author

But I would prefer a Vue expert to weigh in on that.

I can confirm that HMR is not working in vue when you change e.g. a story definition in vue-kitchen-sink, but it does change with a very similar patch to the one to react/render.js above (to vue/render.js).

@Hypnosphi
Copy link
Member

There wasn't objections, only questions

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

@shilman shilman merged commit 9c3ec7f into shilman/refactor-core Dec 30, 2017
@shilman shilman deleted the tmeasday/add-revisions-to-refactor branch December 30, 2017 11:46
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.

3 participants