work on async demo
This commit is contained in:
parent
8252c4a977
commit
66e1e6d7a1
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "fetch"
|
||||
name = "async-demo"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
|
@ -9,7 +9,6 @@ lto = true
|
|||
|
||||
[dependencies]
|
||||
leptos = { path = "../../leptos", features = ["csr", "nightly"] }
|
||||
tachys = { path = "../../tachys", features = ["web"] }
|
||||
reqwasm = "0.5"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
log = "0.4"
|
||||
|
|
|
@ -5,11 +5,8 @@ use gloo_timers::{
|
|||
};
|
||||
use leptos::{
|
||||
prelude::*,
|
||||
reactive_graph::{
|
||||
computed::AsyncDerived, executor::Executor, owner::Stored,
|
||||
signal::RwSignal,
|
||||
},
|
||||
view, IntoView,
|
||||
reactive_graph::{computed::AsyncDerived, owner::Stored, signal::RwSignal},
|
||||
view, Executor, IntoView,
|
||||
};
|
||||
use send_wrapper::SendWrapper;
|
||||
use std::{cell::RefCell, future::Future};
|
||||
|
@ -67,7 +64,7 @@ pub fn async_example() -> impl IntoView {
|
|||
</button>
|
||||
<p>{move || count.get()}</p>
|
||||
<p>
|
||||
{times}
|
||||
//{times}
|
||||
</p>
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use fetch::async_example;
|
||||
use async_demo::async_example;
|
||||
use leptos::*;
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
@ -168,6 +168,7 @@ pub use into_view::IntoView;
|
|||
pub use tachys;
|
||||
|
||||
mod mount;
|
||||
pub use any_spawner::Executor;
|
||||
pub use mount::*;
|
||||
/*mod additional_attributes;
|
||||
pub use additional_attributes::*;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
use crate::IntoView;
|
||||
use reactive_graph::{executor::Executor, owner::Owner};
|
||||
use any_spawner::Executor;
|
||||
use reactive_graph::owner::Owner;
|
||||
use std::marker::PhantomData;
|
||||
use tachys::{
|
||||
dom::body,
|
||||
|
|
Loading…
Reference in New Issue