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

Better way to ensure bundle is fully written before requesting #5

Open
bengourley opened this issue Dec 1, 2016 · 1 comment
Open

Comments

@bengourley
Copy link
Owner

bengourley commented Dec 1, 2016

I found that if I requested the compiled bundles as soon as the SSE data came through, sometimes the request happened before the file had been fully written. I solved it with this arbitrary timeout, but there must be a better way:

https://github.com/bengourley/hot-rld/blob/master/_client.js#L22

Maybe configuring the options to gaze better so that the event is not sent until the file is definitely complete?

@bengourley
Copy link
Owner Author

bengourley commented Dec 1, 2016

Turns out this is a bug in the debounce logic of shama/gaze. Open PR: shama/gaze#231.

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

No branches or pull requests

1 participant