Skip to content

Conversation

@absynce
Copy link

@absynce absynce commented Dec 3, 2025

Sometimes the file watcher will receive a bunch of file changes at once. Examples: changing branches, generating code. When that happens, it triggers building the docs multiple times.

elm-doc-preview docs build multi barrage

This is a simple debounce mechanism that waits 250ms before building/sending the docs. If another file triggers a build, it pauses again.

Now it detects a bunch of changes and builds once:
image

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.

1 participant