Skip to content
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
@vtrifonov

Description

@vtrifonov

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

  1. Create a new project with tns create test --js.
  2. Run tns run android/ios --hmr in the test folder folder.
  3. Change the button name, returned message or css theme and watch the changes being applied on the device.
  4. 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

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