SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Add `isInitialUpdate` to HmrServer

Summary: Right now we are using a local boolean and `bundle-registered` to hide the "Refresh" banner on the first update from the server (right after loading the bundle). This change adds `isInitialUpdate` to the `update-start` message which I'm now using to disable the banner. This also simplifies the HMRClient a little bit.

Reviewed By: cpojer

Differential Revision: D16357287

fbshipit-source-id: 29e72774989c4ba895a85be06a366e1b2fe7c02f
D
Dan Abramov committed
d5e49bdd05eb86051b3ae88cf5cd5b9627ce6897
Parent: 7c7fe1c
Committed by Facebook Github Bot <[email protected]> on 7/18/2019, 6:11:30 PM