diff --git a/packages/hooks/src/use_resource.rs b/packages/hooks/src/use_resource.rs index ad8fbe247..ab645c785 100644 --- a/packages/hooks/src/use_resource.rs +++ b/packages/hooks/src/use_resource.rs @@ -16,7 +16,6 @@ use std::{cell::Cell, future::Future, rc::Rc}; #[doc = include_str!("../docs/moving_state_around.md")] #[doc(alias = "use_async_memo")] #[doc(alias = "use_memo_async")] -#[must_use = "Consider using `cx.spawn` to run a future without reading its value"] #[track_caller] pub fn use_resource(mut future: impl FnMut() -> F + 'static) -> Resource where