Skip to content

Commit 599cd88

Browse files
committed
Fixing not watching after
1 parent e58f18d commit 599cd88

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/file.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ class File {
496496
}
497497
// Same event name - it's an atomic update
498498
this.unsubscribeFromNativeChangeEvents();
499+
this.subscribeToNativeChangeEvents(); // because the inode changed
499500
case 'change':
500501
case 'resurrect':
501502
this.cachedContents = null;

0 commit comments

Comments
 (0)