switch router to async-lock

This commit is contained in:
Adrian Wannenmacher committed 2023-04-11 19:58:07 +02:00
1 parent 231e32d76e
commit 00174d4f46
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ keywords = ["dom", "ui", "gui", "react", "wasm"]
[dependencies]
anyhow = "1.0.66"
async-rwlock = "1.3.0"
async-lock = "2.7.0"
dioxus = { path="../dioxus" }
dioxus-router-core = { path = "../router-core"}
futures-channel = "0.3.25"
+1 -1
View File
@@ -1,6 +1,6 @@
use std::sync::Arc;
use async_rwlock::RwLock;
use async_lock::RwLock;
use dioxus::{core::Component, prelude::ScopeId};
use dioxus_router_core::{RouterMessage, RouterState};
use futures_channel::mpsc::UnboundedSender;
+1 -1
View File
@@ -1,4 +1,4 @@
use async_rwlock::RwLockReadGuard;
use async_lock::RwLockReadGuard;
use dioxus::{core::Component, prelude::ScopeState};
use dioxus_router_core::RouterState;
+1 -1
View File
@@ -1,4 +1,4 @@
use async_rwlock::RwLockReadGuard;
use async_lock::RwLockReadGuard;
use dioxus::{core::Component, prelude::*};
use dioxus_router_core::{
history::{HistoryProvider, MemoryHistory},