Skip to content

Commit a897b4e

Browse files
committed
fix(hsr): fixed hsr
Regression was causing HSR to be in a race condition with app startup, which is now fixed.
1 parent e3b49e1 commit a897b4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/perseus/src/reactor/start.rs

+2
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ impl Reactor<BrowserNodeType> {
381381
let popup_error_disposer_2 = popup_error_disposer.clone();
382382

383383
if self.is_first.get() {
384+
// HSR will take care of this if it's enabled
385+
#[cfg(not(all(debug_assertions, feature = "hsr")))]
384386
self.is_first.set(false);
385387
} else {
386388
spawn_local_scoped(cx, async move {

0 commit comments

Comments
 (0)