work on async demo

This commit is contained in:
Greg Johnston 2024-02-17 09:34:10 -05:00
parent 8252c4a977
commit 66e1e6d7a1
5 changed files with 8 additions and 10 deletions

View File

@ -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"

View File

@ -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>
}
}

View File

@ -1,4 +1,4 @@
use fetch::async_example;
use async_demo::async_example;
use leptos::*;
pub fn main() {

View File

@ -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::*;

View File

@ -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,