Files
react-native/Libraries
Dan Abramov 4037f08b72 Always connect the socket at start
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
2019-07-17 06:29:25 -07:00
..
2019-07-11 12:02:39 -07:00
2019-07-11 12:02:39 -07:00
2019-05-20 18:05:55 -07:00
2019-07-17 06:29:25 -07:00
2019-07-11 12:02:39 -07:00
2019-06-21 10:59:09 -07:00
2019-06-27 08:21:29 -07:00
2019-07-11 12:02:39 -07:00
2019-05-13 11:43:49 -07:00
2019-06-07 06:39:28 -07:00