Make use_future take an impl FnMut + 'static, don't include router prelude when we don't need to
This commit is contained in:
22 files changed
+12
-25
No files matched your search
@@ -169,7 +169,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
fn app() -> Element {
|
||||
let mut count = use_signal(|| 0);
|
||||
|
||||
use_future(|| async move {
|
||||
use_future(move || async move {
|
||||
loop {
|
||||
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
|
||||
count += 1;
|
||||
|
||||
Reference in new issue
Block a user