fixed merge artifacts

This commit is contained in:
Maccesch 2024-08-25 01:40:55 +01:00
parent e00f461ea7
commit 9df6281ff7
2 changed files with 9 additions and 11 deletions

View file

@ -73,6 +73,7 @@ exclude = ["ssr", "use_webtransport_with_server"]
[workspace.dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos" }
codee = { version = "0.2" }
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
@ -94,8 +95,5 @@ panic = "abort"
[lib]
[workspace.dependencies]
codee = { version = "0.2" }
[package.metadata.leptos]
lib-profile-release = "wasm-release"

View file

@ -315,7 +315,7 @@ where
reconnect_timer_ref.set_value(
set_timeout_with_handle(
move || {
if unmounted.get() {
if unmounted.load(std::sync::atomic::Ordering::Relaxed) {
return;
}
if let Some(connect) = connect_ref.get_value() {