-
Notifications
You must be signed in to change notification settings - Fork 192
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
fix: live reload by resolving watchers only if they weren't notified #716
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works. Thanks for the quick fix!
watchers.splice(watchers.indexOf(watcher), 1); | ||
resolve('OK'); | ||
if (!watcher.notified) { | ||
resolve('OK'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would also work:
const index = watchers.indexOf(watcher);
if (index >= 0) {
watchers.splice(index, 1);
resolve('OK');
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am interested in this project!,
When is this bug fixed on main branch??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be once I merge the PR and make a release.
Any update on this? Looks like build failed because of an extra |
@statm |
Published under:
|
No description provided.