wip: groundwork for noderefs
This commit is contained in:
1 parent
a44e9fcffa
commit
c1afeba1ef
21 files changed
+184
-103
No files matched your search
@@ -2,6 +2,8 @@ use dioxus::prelude::*;
|
||||
fn main() {}
|
||||
|
||||
pub static Example: FC<()> = |cx| {
|
||||
let p = 10;
|
||||
|
||||
cx.render(rsx! {
|
||||
div {
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ pub static Example: FC<()> = |cx| {
|
||||
|
||||
// Tasks are 'static, so we need to copy relevant items in
|
||||
let (async_count, dir) = (count.for_async(), *direction);
|
||||
|
||||
|
||||
let (task, result) = use_task(cx, move || async move {
|
||||
loop {
|
||||
gloo_timers::future::TimeoutFuture::new(250).await;
|
||||
|
||||
Reference in new issue
Block a user