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

Restart build immediately if a file changes while the app is building #4899

Closed
trusktr opened this issue Aug 6, 2015 · 4 comments
Closed

Comments

@trusktr
Copy link
Contributor

trusktr commented Aug 6, 2015

_1 Upvote_ When a client file changes, a rebuild happens, and eventually the client will be restarted.

But, if we change another client file while a build is in progress (the client is yet to be restarted) then that will trigger another build that queues up another client restart.

Idea: when a file changes during a build, cancel the following restart and only restart a single time once files have stopped changing; similar to how _.debounce works.

I find myself editing multiple files and saving them in succession, which causes multiple restarts. A single restart would be more efficient. The timeout of the "debounce" can just be the amount of time it takes for a rebuild to complete.

@trusktr
Copy link
Contributor Author

trusktr commented Aug 6, 2015

This can apply to server restarts too.

@zimme
Copy link
Contributor

zimme commented Aug 7, 2015

👍

@stubailo stubailo changed the title [idea] Prevent client restarts when files change during build. Restart build immediately if a file changes while the app is building Aug 11, 2015
@stubailo
Copy link
Contributor

This is a great idea! Happens to me all the time.

Thanks for the feature request! We welcome discussions about how to make Meteor better. If you haven't yet, check out our wiki page about feature requests on GitHub.

@hwillson
Copy link
Contributor

To help provide a more clear separation between feature requests and bugs, and to help clean up the feature request backlog, Meteor feature requests are now being managed under the https://github.com/meteor/meteor-feature-requests repository.

This feature request will be closed here, but anyone interested in migrating this feature request to the new repository (to make sure it stays active), can click here to start the feature request migration process. This manual migration process is intended to help identify which of the older feature requests are still considered to be of value to the community. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants