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

fix(storybook-framework-web-components): watch code changes and auto-reload by default #2735

Merged
merged 1 commit into from
May 16, 2024

Conversation

bashmish
Copy link
Member

@bashmish bashmish commented May 16, 2024

What I did

  1. set watch: true to enable auto-reload by default

We implemented the baseline for auto-reload here #2482
But I overlooked the fact that watch: true wasn't set by default.
It should be, because it's expected of the Storybook to have this behavior by default, e.g. @storybook/web-components-vite has it.

If we make a stable HMR implementation and test it extensively, we can in the future enable that instead by default (this is what frameworks presets are for, also the one I patch here). For now it's just a simple page reload.

Copy link

changeset-bot bot commented May 16, 2024

🦋 Changeset detected

Latest commit: 589bad6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@web/storybook-framework-web-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@thepassle thepassle merged commit 51cbf79 into master May 16, 2024
6 of 7 checks passed
@thepassle thepassle deleted the fix/storybook-wc-watch-by-default branch May 16, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants