skeleton of use_server_future with reactivity

This commit is contained in:
Jonathan Kelley committed 2024-02-01 13:21:52 -08:00
1 parent b3ed337b6b
commit 0c71b95e82
11 files changed
+200 -193

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ fn app() -> Element {
});
// use_resource will spawn a future that resolves to a value - essentially an async memo
let _slow_count = use_resource(move || async move {
let _slow_count = use_async_memo(move || async move {
tokio::time::sleep(Duration::from_millis(200)).await;
count() * 2
});