Skip to content

Code cache breaks HMR #1554

Closed
Closed
@darind

Description

@darind

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.2.2
  • Cross-platform modules: 6.2.3
  • Android Runtime: 6.2.0

Describe the bug

HMR does not work if code cache is enabled

To Reproduce

  1. Enable code cache in app/package.json:
{
  "main": "app.js",
  "android": {
    "v8Flags": "--nolazy --expose_gc",
    "markingMode": "none",
    "codeCache": "true"
  }
}
  1. Run the app: tns run android

  2. Make changes to some of the files and ensure that those changes are applied

  3. Stop the CLI with Ctrl+C

  4. Run the app again without making any changes: tns run android

  5. Make changes to some of the files

Expected behavior

The new changes are applied

Actual behavior

The new changes are never applied on the device even if the CLI reports that those changes have been sent and the app was refreshed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions