Closed
Description
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
- Enable code cache in
app/package.json
:
{
"main": "app.js",
"android": {
"v8Flags": "--nolazy --expose_gc",
"markingMode": "none",
"codeCache": "true"
}
}
-
Run the app:
tns run android
-
Make changes to some of the files and ensure that those changes are applied
-
Stop the CLI with
Ctrl+C
-
Run the app again without making any changes:
tns run android
-
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.