Skip to content

fix: handle correctly the situation when the compilation hash is the same as the previous one #5101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 30, 2019

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Oct 29, 2019

Currently CLI considers the hash that is the same as the previous as invalid and this way the application is restarted on device. As that hash is already handled, we should consider it as a valid hash.
Steps to reproduce :

`tns create ts_proj`  - choose ts tabs project

npm i tns-core-modules@rc --save --save-exact

npm i nativescript-dev-webpack@rc --save-dev --save-exact

node_modules/.bin/update-ns-webpack --deps –configs

tns run android

Change something in app.android.scss - the change is applied, no restart

Change something in app.ios.scss - application restarts

Rel to: #5105

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

@cla-bot cla-bot bot added the cla: yes label Oct 29, 2019
@Fatme Fatme changed the base branch from master to release October 29, 2019 07:46
Copy link
Contributor

@DimitarTachev DimitarTachev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we should merge this in release-patch as I don't think the fix is critical and it's too late for the 6.2 release.

@Fatme Fatme changed the base branch from release to release-patch October 30, 2019 09:48
…same as the previous one

Currently CLI considers the hash that is the same as the previous as invalid and this way the application is restarted on device. As that hash is already handled, we should consider it as a valid hash.
Steps to reproduce :
```
`tns create ts_proj`  - choose ts tabs project

npm i tns-core-modules@rc --save --save-exact

npm i nativescript-dev-webpack@rc --save-dev --save-exact

node_modules/.bin/update-ns-webpack --deps –configs

tns run android

Change something in app.android.scss - the change is applied, no restart

Change something in app.ios.scss - application restarts
```
@Fatme
Copy link
Contributor Author

Fatme commented Oct 30, 2019

test cli-smoke cli-run

@Fatme Fatme merged commit 7f2933b into release-patch Oct 30, 2019
@Fatme Fatme deleted the fatme/hmr-hash branch October 30, 2019 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants