Browse Source

Merge pull request #1440 from ealmloff/fix-use-future-docs

Fix use_future docs
Jonathan Kelley 1 year ago
parent
commit
f2b05bcfb4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/hooks/src/usefuture.rs

+ 1 - 1
packages/hooks/src/usefuture.rs

@@ -14,7 +14,7 @@ use crate::{use_state, UseState};
 ///
 ///
 /// Whenever the hooks dependencies change, the future will be re-evaluated.
 /// Whenever the hooks dependencies change, the future will be re-evaluated.
 /// If a future is pending when the dependencies change, the previous future
 /// If a future is pending when the dependencies change, the previous future
-/// will be allowed to continue
+/// will be canceled before the new one is started.
 ///
 ///
 /// - dependencies: a tuple of references to values that are PartialEq + Clone
 /// - dependencies: a tuple of references to values that are PartialEq + Clone
 pub fn use_future<T, F, D>(
 pub fn use_future<T, F, D>(