Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[CP-beta]Prevent --web-experimental-hot-reload on web-server #170744

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

Conversation

flutteractionsbot
Copy link

@flutteractionsbot flutteractionsbot commented Jun 17, 2025

This pull request is created by automatic cherry pick workflow
Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request.

Issue Link:

What is the link to the issue this cherry-pick is addressing?

dart-lang/sdk#60289

Changelog Description:

Explain this cherry pick in one line that is accessible to most Flutter developers. See best practices for examples

Automatically disable web-experimental-hot-reload when running flutter using web-server device.

Impact Description:

What is the impact (ex. visual jank on Samsung phones, app crash, cannot ship an iOS app)? Does it impact development (ex. flutter doctor crashes when Android Studio is installed), or the shipping production app (the app crashes on launch)

Without this fix apps launched withflutter run -d web-server do not load in the browser. The app is never started.

Workaround:

Is there a workaround for this issue?

You can work around the issue by passing the same argument that this cherry pick automatically adds:
flutter run -d web-server --no-web-experimental-hot-reload.

Risk:

What is the risk level of this cherry-pick?

  • Low
  • Medium
  • High

Test Coverage:

Are you confident that your fix is well-tested by automated tests?

  • Yes
  • No

Validation Steps:

What are the steps to validate that this fix works?

flutter run -d web-server and verify that the app can be loaded in a web browser.

When running on the web-server device hot reload option will default to
disabled when `-d web-server` is also passed.
This is temporary until the app can start correctly with hot reload
enabled.

Issue: dart-lang/sdk#60289
@flutteractionsbot flutteractionsbot added the cp: review Cherry-picks in the review queue label Jun 17, 2025
@flutteractionsbot
Copy link
Author

@nshahan please fill out the PR description above, afterwards the release team will review this request.

@flutter-dashboard
Copy link

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jun 17, 2025
@reidbaker reidbaker self-requested a review June 17, 2025 21:00
@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 17, 2025
@auto-submit auto-submit bot merged commit eb3ca25 into flutter:flutter-3.34-candidate.0 Jun 17, 2025
143 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App cp: review Cherry-picks in the review queue tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants