Skip to content

fix: persist the next hmr hash per platform #5086

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 18, 2019
Merged

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Oct 18, 2019

The NativeScript CLI persists the hash of the next hmr compilation locally and based on that decides if the reported hash is valid or not. However, in case when tns run command is executed, the application is randomly restarted on some devices. This happens as in this situation we have 2 webpack processes but the hmr hash is not persisted per platform.

Rel to: #5080

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

The NativeScript CLI persists the hash of the next hmr compilation locally and based on that decides if the reported hash is valid or not. However, in case when `tns run` command is executed, the application is randomly restarted on some devices. This happens as in this situation we have 2 webpack processes but the hmr hash is not persisted per platform.

Rel to: #5080
@cla-bot cla-bot bot added the cla: yes label Oct 18, 2019
@Fatme Fatme added this to the 6.2.0 milestone Oct 18, 2019
@Fatme
Copy link
Contributor Author

Fatme commented Oct 18, 2019

test cli-device cli-run

@Fatme Fatme merged commit 79b58a8 into release Oct 18, 2019
@Fatme Fatme deleted the fatme/fix-valid-hash branch October 18, 2019 07:21
@Fatme Fatme added the no-changelog The issue is present only in `next` versions and was not included in official version. label Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes no-changelog The issue is present only in `next` versions and was not included in official version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants