mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: Suspend::new() in router
This commit is contained in:
parent
4107203da2
commit
51f368c5c5
1 changed files with 3 additions and 3 deletions
|
@ -562,7 +562,7 @@ where
|
|||
owner: owner.clone(),
|
||||
matched,
|
||||
view_fn: Arc::new(Mutex::new(Box::new(|| {
|
||||
Suspend(Box::pin(async { ().into_any() }))
|
||||
Suspend::new(Box::pin(async { ().into_any() }))
|
||||
}))),
|
||||
base: base.clone(),
|
||||
};
|
||||
|
@ -586,7 +586,7 @@ where
|
|||
*view_fn.lock().or_poisoned() = Box::new(move || {
|
||||
let owner = owner.clone();
|
||||
let view = view.clone();
|
||||
Suspend(Box::pin(async move {
|
||||
Suspend::new(Box::pin(async move {
|
||||
let view = SendWrapper::new(
|
||||
owner.with(|| ScopedFuture::new(view.choose())),
|
||||
);
|
||||
|
@ -691,7 +691,7 @@ where
|
|||
Box::new(move || {
|
||||
let owner = owner.clone();
|
||||
let view = view.clone();
|
||||
Suspend(Box::pin(async move {
|
||||
Suspend::new(Box::pin(async move {
|
||||
let view = SendWrapper::new(
|
||||
owner.with(|| {
|
||||
ScopedFuture::new(
|
||||
|
|
Loading…
Reference in a new issue