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

Prevent unhandled rejections caused by live-reload #1349

Merged
merged 1 commit into from
Mar 5, 2018
Merged

Conversation

matthewp
Copy link
Member

@matthewp matthewp commented Mar 5, 2018

live-reload creates a promise by waiting on steal.done() before doing
its WebSocket connection. Since this is a new promise, if steal.done()
rejects, Node will show an unhandled rejection error. To fix we just
ignore errors in this newly created promise; the errors will be
handled elsewhere.

Closes #1348

live-reload creates a promise by waiting on `steal.done()` before doing
its WebSocket connection. Since this is a new promise, if steal.done()
	rejects, Node will show an unhandled rejection error. To fix we just
	ignore errors in this newly created promise; the errors will be
	handled elsewhere.

Closes #1348
@matthewp matthewp merged commit ddc92e0 into master Mar 5, 2018
@matthewp matthewp deleted the sd-lr branch March 5, 2018 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

live-reload causes an unhandled rejection when loading the app fails
1 participant