Skip to content

Hot restart with Chrome and --web-experimental-hot-reload results in files with gen=N suffixes #166294

Closed

Description

@srujzs

If you run an app with flutter run -d chrome --web-experimental-hot-reload, change a file, and then do a hot restart, you'll see that file's JS code file being loaded with a gen=1 suffix. You'll also see the old file in the sources tab.

This is confusing to users and doesn't actually do anything. It was intended to help with cache-busting, but that was for a multi-app scenario that Flutter tools does not come across.

Activity

  1. self-assigned this
    on Mar 31, 2025
  2. github-actions commented on Apr 29, 2025

    @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.

  3. locked as resolved and limited conversation to collaborators on Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions