This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Not applying hmr changes after restarting app #868
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: 5.3.1
- Cross-platform modules: 5.3.0
- Android Runtime: 5.3.1
- iOS Runtime: 5.3.1
- Plugin(s): nativescript-dev-webpack: 0.20.0
- Node.js: 9.5.0
Describe the bug
When you make some changes in hmr mode and after that restart the application on your phone, the changes won't be available until you start the CLI again.
To Reproduce
- Create a new project with
tns create test --js
. - Run
tns run android/ios --hmr
in thetest
folder folder. - Change the button name, returned message or css theme and watch the changes being applied on the device.
- Restart the app on the device. The application will show up in its initial state.
Expected behavior
After restarting the application the changes made in hmr mode should be applied.
Additional context
This happens on JS, TSC and NG projects, works in Vue. The same behaviour works as expected with nativescript-dev-webpack@0.19.2 and seems to be broken since nativescript-dev-webpack@0.20.0.
Metadata
Metadata
Assignees
Labels
No labels