Skip to content
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 opened this issue Apr 18, 2019 · 0 comments
Closed

Not applying hmr changes after restarting app #868

vtrifonov opened this issue Apr 18, 2019 · 0 comments
Assignees

Comments

@vtrifonov
Copy link
Contributor

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 [email protected] and seems to be broken since [email protected].

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants