-
Notifications
You must be signed in to change notification settings - Fork 200
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
Add debounce to fsnotify #1882
Add debounce to fsnotify #1882
Conversation
ihp.cabal
Outdated
@@ -105,6 +105,7 @@ common shared-properties | |||
, with-utf8 | |||
, ihp-hsx | |||
, ihp-postgresql-simple-extra | |||
, auto-update |
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.
Is this related to the debounce?
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.
Yes the Control.Debounce
module is part of that package
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.
Should we add a comment to indicate it?
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.
Good point, added 👍
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.
ihp.cabal
Outdated
@@ -105,6 +105,7 @@ common shared-properties | |||
, with-utf8 | |||
, ihp-hsx | |||
, ihp-postgresql-simple-extra | |||
, auto-update |
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.
Should we add a comment to indicate it?
Not possible without adding latency. We could use https://hackage.haskell.org/package/auto-update-0.1.6/docs/Control-Debounce.html#v:trailingEdge to first cool down and then trigger the reloads. The issue is that this adds latency to every normal single file change |
Yeah, I was just reading about the Thanks 🙏 |
Fixes #1809