Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCode cache breaks HMR #1554
Code cache breaks HMR #1554
Comments
* bumping version * fix(workers): Dispose the isolate when terminating workers (#1550) * fix: Ensure js timestamp is smaller than corresponding code cache file timestamp (#1554) * Fix Kotlin enum accessing issue (#1559) * Update package.json version to 6.3.1 * Update CHANGELOG.md Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com> Co-authored-by: Darin Dimitrov <darin.dimitrov@gmail.com>
* fix(workers): Dispose the isolate when terminating workers (#1550) * Prepare 6.3.1 patch (#1561) * bumping version * fix(workers): Dispose the isolate when terminating workers (#1550) * fix: Ensure js timestamp is smaller than corresponding code cache file timestamp (#1554) * Fix Kotlin enum accessing issue (#1559) * Update package.json version to 6.3.1 * Update CHANGELOG.md Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com> Co-authored-by: Darin Dimitrov <darin.dimitrov@gmail.com> Co-authored-by: Darin Dimitrov <darin.dimitrov@gmail.com> Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
Environment
Provide version numbers for the following components (information can be retrieved by running
tns infoin your project folder or by inspecting thepackage.jsonof the project):Describe the bug
HMR does not work if code cache is enabled
To Reproduce
app/package.json:{ "main": "app.js", "android": { "v8Flags": "--nolazy --expose_gc", "markingMode": "none", "codeCache": "true" } }Run the app:
tns run androidMake changes to some of the files and ensure that those changes are applied
Stop the CLI with
Ctrl+CRun the app again without making any changes:
tns run androidMake 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.