mirror of
https://github.com/status-im/react-native.git
synced 2025-01-25 00:39:03 +00:00
20588a6bf8
Summary:We've received reports saying that sometimes HRM updates take a couple of seconds to get applied. The feature is very optimized so that it takes around 100ms for most common type of changes. Only changes that require rebuilding caches could take longer than that, maybe up to 1 second. We think the problem is that watchman delays sending the file change notification because the system is under heavy use. It worth mentioning this is not a watchman issue!. This could happen for instance if flow is enabled. So, to better understand what's going on lets log when a file is changed and just before sending the HMR update to the client. The client codepath is extremelly fast so no need to log any of that. Reviewed By: davidaurelio Differential Revision: D2978694 fb-gh-sync-id: abd3b473d0b7ac7cd4461effce9813ccfda32c2b shipit-source-id: abd3b473d0b7ac7cd4461effce9813ccfda32c2b