mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
4037f08b72
Summary: Previously, Fast Refresh socket was initialized lazily. This changes it to be initialized eagerly, even if Fast Refresh is off. This makes it easier to reason about different states the app can be in. It also lets us later change the code to stash away updates even when Fast Refresh is off — and apply them when you turn it on. (That's out of scope of this diff). This change should not be user observable. Even if setting up the socket fails, the error is saved, and should only be shown once you turn it on. (AFAIK, D16286232 fixes the last error that was shown unconditionally.) Reviewed By: rickhanlonii Differential Revision: D16287232 fbshipit-source-id: a88f9c9f72847074876087da46e19dffa4eb82eb