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
@@ -50,7 +50,7 @@ fn app() -> Element {
|
||||
/// Suspense is achieved my moving the future into only the component that
|
||||
/// actually renders the data.
|
||||
fn Doggo() -> Element {
|
||||
let fut = use_future(|| async move {
|
||||
let fut = use_future(move || async move {
|
||||
#[derive(serde::Deserialize)]
|
||||
struct DogApi {
|
||||
message: String,
|
||||
|
||||
Reference in new issue
Block a user