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

Make pauseIsolatesOnStart an optional parameter to hot-restart #2397

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

elliette
Copy link
Contributor

Follow up to #2378

The pauseIsolatesOnStart parameter should be optional, so that we don't need to update all the call sites at once.

Work towards flutter/devtools#7231

Copy link
Contributor

@nshahan nshahan left a comment

Choose a reason for hiding this comment

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

LGTM with one question.

hotRestartJs = allowInterop((String runId, bool pauseIsolatesOnStart) {
if (pauseIsolatesOnStart) {
hotRestartJs = allowInterop((String runId, [bool? pauseIsolatesOnStart]) {
if (pauseIsolatesOnStart ?? false) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this preferable to giving it a default value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We also define @JS(r'$dartHotRestartDwds') somewhere else (in google3) and this way we don't need to update the parameters there too. I'm not sure if we would if this had a default value.

@elliette elliette merged commit ee8c967 into dart-lang:master Mar 26, 2024
51 of 52 checks passed
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