Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

watchPath calls subscribers multiple times #189

Open
Mike-Dax opened this issue Feb 26, 2017 · 5 comments · May be fixed by #190 or #195
Open

watchPath calls subscribers multiple times #189

Mike-Dax opened this issue Feb 26, 2017 · 5 comments · May be fixed by #190 or #195

Comments

@Mike-Dax
Copy link
Contributor

This is likely a problem with fs, file changes call subscribers twice each time.

@Mike-Dax Mike-Dax linked a pull request Feb 26, 2017 that will close this issue
@MarshallOfSound
Copy link
Member

Tbh the easiest solution to this is a simple debounce 😆

@Mike-Dax
Copy link
Contributor Author

Seems to happen at intervals up to a second and a half after the original change event on my machine. A debounce feels like a hacky fix to me?

@MarshallOfSound
Copy link
Member

@Mike-Dax Probably due to a meta-data change being delayed by your editor. Chokidar actually does content checks I think to make it way more accurate 👍

@Mike-Dax
Copy link
Contributor Author

@MarshallOfSound Even renaming a file in Finder does the same thing :\

@anaisbetts
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants