Skip to content

Hot Reloading is not working #18899

Closed
Closed
@williamliangwl

Description

@williamliangwl

Hot Reloading is not updating the view in Android device even we have made changes. It happens after a Reload triggered from the device.

I have tested this issue in v0.55.2, 0.54.0 and 0.53.3. The only version that has hot reload still functioning well is 0.53.3, this problem starts occuring from 0.54.0

Environment

OS: Windows 10
Node: 6.11.5
Yarn: 1.3.2
npm: 4.6.1
Watchman: Not Found
Xcode: N/A
Android Studio: Version 3.0.0.0 AI-171.4443003

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.2 => 0.55.2

Steps to Reproduce

  1. Run react-native init NoHotLoad
  2. Run react-native run-android
  3. When the project loaded, enable the Hot Reloading
  4. Make changes to the App.js, like editing the text. The change should appear in the device.
  5. Do Reload on the device
  6. Repeat step 4, but the change won't appear at the device. Just a toast of Hot reloading appears.

Another scenario: after installing the app to the device, replace step 2 above with npm start should also reproduces this problem.

Expected Behavior

The Hot Reloading should be able to hot-reload all the changes, regardless number of attempts of reload.

Actual Behavior

The Hot Reloading only works before a Reload action triggerred

Metadata

Metadata

Assignees

Labels

BugDXIssues concerning how the developer experience can be improved.Impact: RegressionDescribes a behavior that used to work on a prior release, but stopped working recently.JavaScriptTech: Bundler 📦This issue is related to the bundler (Metro, Haul, etc) used.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions