Skip to content

Commit

Permalink
fix(hsr): fixed hsr
Browse files Browse the repository at this point in the history
Regression was causing HSR to be in a race condition with app startup,
which is now fixed.
  • Loading branch information
arctic-hen7 committed Jan 18, 2023
1 parent e3b49e1 commit a897b4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/perseus/src/reactor/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ impl Reactor<BrowserNodeType> {
let popup_error_disposer_2 = popup_error_disposer.clone();

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

0 comments on commit a897b4e

Please sign in to comment.