Skip to content

Commit

Permalink
fix: fixed crash handling system
Browse files Browse the repository at this point in the history
The `running` variable wasn't being properly set.
  • Loading branch information
arctic-hen7 committed Feb 25, 2023
1 parent e9c6239 commit b085888
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/perseus/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ use crate::reactor::Reactor;
use crate::{i18n::TranslationsManager, init::PerseusAppBase, stores::MutableStore};
use crate::{plugins::PluginAction, template::BrowserNodeType, utils::checkpoint};
use sycamore::prelude::create_scope;
#[cfg(feature = "hydrate")]
use sycamore::utils::hydrate::with_hydration_context;
use wasm_bindgen::JsValue;
use web_sys::{CustomEvent, CustomEventInit};

Expand Down Expand Up @@ -113,7 +111,7 @@ pub fn run_client<M: MutableStore, T: TranslationsManager>(

// NOTE: To anyone who ever thinks it might be a good idea to put this whole
// thing in a `with_hydration_cx()`, it's not, it's really not.
core();
running = core();
});

dispatch_loaded(running, false);
Expand Down

0 comments on commit b085888

Please sign in to comment.