HMR is always one update behind #1527

Closed
opened 2025-08-09 17:20:29 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @moverware on 7/8/2016

After I start the server, the first time I update a module the HMR fails, but all subsequent changes are successful. However the change before the most current one is the one that is successfully reloaded. For example, I start the server with <div></div>. Then I change it to be <div>Hi</div> and the update fails. So I change it to <div>Hello</div> and the HRM is sucessful and <div>Hi</div> is what is displayed. Next update no matter what it was would display <div>Hello</div> etc.

*Originally created by @moverware on 7/8/2016* After I start the server, the first time I update a module the HMR fails, but all subsequent changes are successful. However the change before the most current one is the one that is successfully reloaded. For example, I start the server with `<div></div>`. Then I change it to be `<div>Hi</div>` and the update fails. So I change it to `<div>Hello</div>` and the HRM is sucessful and `<div>Hi</div>` is what is displayed. Next update no matter what it was would display `<div>Hello</div>` etc.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1527
No description provided.