I’m looking to use a file watcher like chokidar (https://github.com/paulmillr/chokidar) or gaze to watch a file tree and update a
BrowserWindow automatically as changes occur on the file tree.
As far as I understand from the docs, the usual pattern to do something like this would be by using
remote from the
BrowserWindow, but I feel like it makes more sense to have a single source of truth in the
main process instead.
Maybe I’m just confused about the differences between
remote - can anybody explain what pattern makes the most sense for a situation like this?
Also, when I try to use
remote, I’m getting errors browser-side - which I’m assuming are the result of trying to use binaries in the BrowserWindow.
Any insight(s) here?