Skip to content

Migrate to an embedder API that exposes hot restart as two phases (begin and end) #187452

Closed

Description

@nshahan

We are going to expose the two phases of the hot restart operations in the embedder. This will make it easier to support the variety of integrations we have. When using DDC library bundles we need to migrate to calls of:

  • dartDevEmbedder.hotRestartBegin()
  • dartDevEmbedder.hotRestartEnd()

This also requires updating the $dartReloadModifiedModules method to return accept an array of the files to be reloaded and return an array of the files that were reloaded.

Activity

  1. self-assigned this
    on Jun 2, 2026
  2. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    P1High-priority issues at the top of the work list
    on Jun 2, 2026
  3. nshahan commented on Jun 2, 2026

    @nshahan
    ContributorAuthor

    I've found that the existing tests for hot reload/restart with flutter run -d web-server and not properly validating that the application loads and reloads/restarts successfully.

    I'm going to improve these tests first to get coverage that my changes for the hot restart API do not break existing behavior.

  4. github-actions commented on Jul 14, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions